lundi 23 avril 2018

Overloading truncate laravel 5

Hi i try this in my model

public static function truncate(){
    /*my some code*/
    static::truncate();
}


MyModel::truncate();

but i get recursive call. How to organize it correctly?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2HEgwUe
via IFTTT

Aucun commentaire:

Enregistrer un commentaire