When Logged in, Views don't display

Posted 8 months ago by artisticre

When I am not logged in, all the views are showing. When I log in, the views show only the navbar. If I look at the page source code, all the data is there. What happened?

<?php
Route::get('/', '[email protected]');
Route::get('/about', '[email protected]');
Route::get('/services', '[email protected]');
Route::get('/meet-the-team', '[email protected]');
Auth::routes();

Route::get('contact', '[email protected]')->name('contact.index');
Route::post('contact', '[email protected]')->name('contact.index');
Route::get('/dashboard', '[email protected]');
Route::get('application/employment-application', '[email protected]');
Route::get('/dashboard', '[email protected]');
Route::get('/users/logout', 'Auth\[email protected]')->name('user.logout');

Route::prefix('admin')->group(function() {
  Route::get('/login', 'Auth\[email protected]')->name('admin.login');
  Route::post('/login', 'Auth\[email protected]')->name('admin.login.submit');
  Route::get('/', '[email protected]')->name('admin.dashboard');
  Route::get('/logout', 'Auth\[email protected]')->name('admin.logout');

  // Password reset routes
  Route::post('/password/email', 'Auth\[email protected]')->name('admin.password.email');
  Route::get('/password/reset', 'Auth\[email protected]')->name('admin.password.request');
  Route::post('/password/reset', 'Auth\[email protected]');
  Route::get('/password/reset/{token}', 'Auth\[email protected]')->name('admin.password.reset');

  Route::get('/adminreport', '[email protected]');
  Route::get('/adminprintreport', '[email protected]');





});

Route::get('/delete/{id}', '[email protected]');


//Routes to protect when logged out
Route::group(array('middleware' => 'auth'), function() {
    Route::get('/dashboard', '[email protected]')->name('dashboard');
    Route::get('/dashboard', '[email protected]');
    Route::get('/timecard', '[email protected]')->name('timecard');


    Route::get('application/employment-application', array('before' => 'auth', 'uses' => '[email protected]'))->name('application.employment-application');
    Route::post('application/insert', array('before' => 'auth', 'uses' => '[email protected]'));
    Route::get('application/employmentsuccess/{id}', array('before' => 'auth', 'uses' => '[email protected]'));
    Route::get('documents/printabledocuments', array('before' => 'auth', 'uses' => '[email protected]'))->name('documents.printabledocuments');
    Route::get('application/applicationreport', array('before' => 'auth', 'uses' => '[email protected]'));
    Route::get('application/applicationreportprint', array('before' => 'auth', 'uses' => '[email protected]'));
});

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.