Created
September 5, 2017 14:44
-
-
Save uno-de-piera/ec7960e70c84d648e1b3614aa1801112 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Traits; | |
trait SuperCourse { | |
protected static function bootSuperCourse() { | |
static::creating(function($course) { | |
dd($course->toArray()); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment