Exemplo n.º 1
0
 public function website($slug)
 {
     $site = Website::where('slug', $slug)->firstOrFail();
     return view('home.website', ['site' => $site]);
 }
Exemplo n.º 2
0
 private function check_repeat($websites_name)
 {
     $websites = Website::where('websites_name', $websites_name)->count();
     if ($websites) {
         return true;
     }
 }