lundi 4 avril 2016

How to create custom model events laravel 5.1?

I want to create a custom model event in laravel 5.1.

For e.x. when an Articles category is updated i want to make an event and listen to it.

        $article = Article::find($id);
        $article->category_id = $request->input('category_id');
        // fire an event here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire