How do I install untrusted packages safely? Is it safe to run Composer as superuser or root?#

Certain Composer commands, including exec, install, and update allow third party code to execute on your system. This is from its “plugins” and “scripts” features. Plugins and scripts have full access to the user account which runs Composer. For this reason, it is strongly advised to avoid running Composer as super-user/root. You can disable plugins and scripts during package installation […]

Read More

Available Column Types in Laravel

Command Description $table->id(); Alias of $table->bigIncrements(‘id’). $table->foreignId(‘user_id’); Alias of $table->unsignedBigInteger(‘user_id’). $table->bigIncrements(‘id’); Auto-incrementing UNSIGNED BIGINT (primary key) equivalent column. $table->bigInteger(‘votes’); BIGINT equivalent column. $table->binary(‘data’); BLOB equivalent column. $table->boolean(‘confirmed’); BOOLEAN equivalent column. $table->char(‘name’, 100); CHAR equivalent column with a length. $table->date(‘created_at’); DATE equivalent column. $table->dateTime(‘created_at’, 0); DATETIME equivalent column with precision (total digits). $table->dateTimeTz(‘created_at’, 0); DATETIME (with timezone) equivalent […]

Read More

Complete Laravel installation and API guide

How to install Laravel using composer Create View in Laravel Create model, controller and view in Laravel Step 1: Create model and controller Step 2: Create View in Laravel Step 3: call controller using route and display view Note: changing the RouteServiceProvider.php file in App/Providers/ path by uncommenting the code. protected $namespace = ‘App\Http\Controllers’; Create […]

Read More