PHP code example of simba-jirira-source / laravel-schema-contract

1. Go to this page and download the library: Download simba-jirira-source/laravel-schema-contract 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/ */

    

simba-jirira-source / laravel-schema-contract example snippets


return [
    'model_paths' => [
        app_path('Models'),
    ],

    'ignore_models' => [
        // App\Models\LegacyRecord::class,
    ],

    'ignore_columns' => [
        // 'users' => ['password', 'remember_token'],
    ],
];
bash
php artisan vendor:publish --tag=schema-contract-config
bash
php artisan schema-contract:check
bash
php artisan schema-contract:check User
php artisan schema-contract:check "App\\Models\\User"