Created
May 8, 2019 18:41
-
-
Save MaheKarim/42c49b0a0357e66103a75e97203739ea to your computer and use it in GitHub Desktop.
Auto Login Page Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class HomeController extends Controller | |
{ | |
public function __construct() | |
{ | |
$this->middleware('auth'); | |
} | |
public function myindex() | |
{ | |
return view('frontend.home'); | |
} | |
public function index(){ | |
return view('backend.home'); | |
} | |
public function testpage() | |
{ | |
return view('frontend.testpage'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Routes For Login / Registration | |
Auth::routes(); | |
// Controller For Front-end | |
Route::get('/', 'HomeController@myindex')->name('myhome'); | |
Route::get('/home', 'HomeController@index')->name('home'); | |
Route::get('/test_page', 'HomeController@testpage')->name('testpage'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Folder Structure