1. Go to this page and download the library: Download thinkneverland/porter 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/ */
// Inside the User model:
use PorterConfigurable;
// These will be randomized during Porter export/import operations.
protected $omittedFromPorter = ['email', 'name'];
// This will keep specific rows during Porter export/import operations.
protected $keepForPorter = [1, 2, 3];
// This will ensure the model is ignored during Porter export/import operations.
public $ignoreFromPorter = true;
// In a model:
public static $ignoreFromPorter = true;
bash
php artisan porter:install
bash
php artisan porter:clone-s3
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.