In yourModelenable the trait and define$softCascade.Example. For restricted relation use.Example. use \Askedio\SoftCascade\Traits\SoftCascadeTrait; protected $softCascade = ['addresses@restrict']; $softCascadeis
This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag & drop.Uses Spatie's eloquent-sortable under the hood.Requirementsphp: >=8.0 laravel/nova: ^4.24.0FeaturesDrag & drop reorder (on either Index view or HasMany view) BelongsTo/MorphsTo reorder...
Laravel and Vue.js are two of the most popular open-source web development frameworks in use today. Learn about how to build web applications using Laravel and Vue.js.
<?php namespace App\Models; use App\Models\Services\Permissions\Traits\HasPermissions; use App\Models\Services\Roles\Traits\HasRoles; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class User extends ...
use Amyisme13\LaravelJitsi\Traits\HasJitsiAttributes; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { <...> use HasJitsiAttributes; <...> } Simple Usage In your web.php...
This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag & drop.Uses Spatie's eloquent-sortable under the hood.Requirementsphp: >=8.0 laravel/nova: ^4.6.0FeaturesDrag & drop reorder (on either Index view or HasMany view) BelongsTo/MorphsTo reorder...
use OptimistDigital\NovaSortable\Traits\HasSortableRows; class MyResource extends Resource { use HasSortableRows; ... } NB! This overrides the indexQuery() method. Disallowing sorting on a per-request/resource basis You can disable sorting on a per-request or per-resource basis by overriding ...
In order to ensure that the Laravel community is welcoming to all, please review and abide by theCode of Conduct. Please reviewour security policyon how to report security vulnerabilities. License Inertia is open-sourced software licensed under theMIT license. ...
<?php namespace App\Models; use SiroDiaz\Redirection\Models\Redirection as RedirectionBaseModel; use Backpack\CRUD\app\Models\Traits\CrudTrait; class Redirect extends Redirection { use CrudTrait; }Finally, you have to vendor:publish the sirodiaz/laravel-redirection config file to change the model ...
Generated subclasses use the \LaraParse\Traits\CastsParseProperties trait, which tries to help you out a bit. It will:Change all Date columns into \Carbon\Carbon instances Allow you to access built-in columns as properties (for instance, $class->objectId instead of $class->getObjectId()) ...