Exemple #1
0
 public static function boot()
 {
     parent::boot();
     static::created(function ($topic) {
         SiteStatus::newTopic();
     });
 }
 public function create(urlRequest $request)
 {
     $node = Node::find($request->query('node_id'));
     $nodes = Node::allLevelUp();
     SiteStatus::newTopic();
     return view('topics.create_edit', compact('nodes', 'node'));
 }