public function getDashboard()
 {
     $db = new DataBase();
     $list = $db->getInstances();
     return view('main.dashboard', ['list' => $list]);
 }
 public function getFellowshipList()
 {
     $db = new DataBase();
     $list = $db->getFellowship();
     return view('db.fellowship.fellowship', ['list' => $list]);
 }
Exemple #3
0
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
Route::group(['middleware' => ['web']], function () {
    Route::auth();
    /**
     * MAIN PAGE
     */
    Route::get('/', function () {
        return view('welcome');
    });
    Route::get('/db', function () {
        $db = new DataBase();
        $list = $db->getInstances();
        return view('db.main', ['list' => $list]);
    });
    /**
     * DB ITEMS
     * category prefix group
     */
    Route::group(['prefix' => 'category'], function () {
        /**
         * SPORT SECTION
         */
        /**
         * Sport
         */
        Route::get('/sport', 'SportController@getSportList');
 public function getUsefulList()
 {
     $db = new DataBase();
     $list = $db->getUseful();
     return view('db.useful.useful', ['list' => $list]);
 }
 public function getSportList()
 {
     $db = new DataBase();
     $list = $db->getSport();
     return view('db.sport.sport', ['list' => $list]);
 }