PHP code example of malekbenelouafi / laravel-status
1. Go to this page and download the library: Download malekbenelouafi/laravel-status library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
malekbenelouafi / laravel-status example snippets
php
"malekbenelouafi/laravel-status": "1.*",
php
$table->tinyInteger('status')->comment('0: inactive; 1: active');
php
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->tinyInteger('status')->comment('0: inactive; 1: active');
....
....
$table->timestamps();
});