При переходе на этот адрес localhost/conlineltd/routes/web.php // Все мои рауты
я получаю
Fatal error: Uncaught Error: Class 'Illuminate\Support\Facades\Route' not found
При переходе на localhost/about я получаю 404 Not found!
Route::group(['prefix' => 'conlineltd'], function () {
Route::post('/login',function(){
return view('login');
});
Route::post('/register',function(){
return view('register');
});
Route::post('/contact',function(){
return view('contact');
});
Route::get('/about',function(){
return view('about');
});
Route::get('/home', ['as' => 'home' , function(){
return view('index');
}]);
});
protected $hidden = [
'type_id',
'created_at',
'updated_at',
];
protected $hidden = [
'type_id',
'created_at',
'updated_at',
];
Category::with('posts.comments')->get();
public function getDateAttribute () {
return date('Y-M-D', $this->date);
}
public function getUrlAttribute () {
return url($this->slug);
}
protected $appends = [
'url',
'topic',
];
factory(App\Category::class, 10)->create()->each(function ($c) {
factory(App\Product::class, 25)->create()->each(function ($p) use ($c){
$p->categories()->attach($c);
factory(App\Photo::class, rand(1, 3))->create()->each(function ($f) use ($p){
$f->product_id = $p->id;
$f->save();
});
});
});
Product::with(['attributes' => function ($q) use ($ar_select_properties) {
$q->whereIn('id', $ar_select_properties);
}])->get();