PHP 8.3.31
Preview: WithoutModelEvents.php Size: 406 B
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Database/Console/Seeds/WithoutModelEvents.php

<?php

namespace Illuminate\Database\Console\Seeds;

use Illuminate\Database\Eloquent\Model;

trait WithoutModelEvents
{
    /**
     * Prevent model events from being dispatched by the given callback.
     *
     * @param  callable  $callback
     * @return callable
     */
    public function withoutModelEvents(callable $callback)
    {
        return fn () => Model::withoutEvents($callback);
    }
}

Directory Contents

Dirs: 1 × Files: 3

Name Size Perms Modified Actions
stubs DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
3.39 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.91 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
406 B lrw-rw-rw- 2025-09-17 06:53:01
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).