Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created September 5, 2017 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/ec7960e70c84d648e1b3614aa1801112 to your computer and use it in GitHub Desktop.
Save uno-de-piera/ec7960e70c84d648e1b3614aa1801112 to your computer and use it in GitHub Desktop.
<?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