Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Define Events in Model

<?php

namespace AppModels;

use IlluminateDatabaseEloquentFactoriesHasFactory;
use IlluminateDatabaseEloquentModel;

class Post extends Model
{
    use HasFactory;
    protected $fillable = [
        'title', 'description', 'slug', 'unique_id'
    ];
}
Source by codingdriver.com #
 
PREVIOUS NEXT
Tagged: #Define #Events #Model
ADD COMMENT
Topic
Name
5+6 =