示例#1
0
 public function workshops()
 {
     $workshops = Workshop::all();
     return View::make('map.index', compact('workshops'));
 }
示例#2
0
});
Route::get('who-we-are', function () {
    return View::make('pages.who-we-are');
});
Route::get('history', function () {
    return View::make('pages.history');
});
//MAP
Route::get('map', 'HomeController@workshops');
// WORKSHOPS
Route::get('workshops/upcoming', function () {
    $workshops = Workshop::all();
    return View::make('workshops.upcoming', compact('workshops'));
});
Route::get('workshops/past', function () {
    $workshops = Workshop::all();
    return View::make('workshops.past', compact('workshops'));
});
// BLOG
Route::get('blog/news', function () {
    return View::make('blog.news');
});
Route::get('blog/testimonials', function () {
    return View::make('blog.testimonials');
});
Route::get('blog/stories', function () {
    return View::make('blog.stories');
});
// COLLABORATORS
Route::get('collaborators', function () {
    return View::make('collaborators.index');
 public function getIndex()
 {
     $workshops = Workshop::all();
     return View::make('admin.workshop.index', compact('workshops'));
 }
示例#4
0
 public function index()
 {
     $workshops = Workshop::all();
     return View::make('dashboard.workshop.index', compact('workshops'));
 }