1. Go to this page and download the library: Download zepfietje/laravel-seeable 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/ */
zepfietje / laravel-seeable example snippets
return new class extends Migration
{
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->timestamp('seen_at')->nullable();
});
}
// ...
};
namespace App\Models;
// ...
use ZepFietje\Seeable\Concerns\Seeable;
class User extends Authenticatable
{
// ...
use Seeable;
}