Skip to content

Instantly share code, notes, and snippets.

@MaheKarim
Created May 8, 2019 18:41
Show Gist options
  • Save MaheKarim/42c49b0a0357e66103a75e97203739ea to your computer and use it in GitHub Desktop.
Save MaheKarim/42c49b0a0357e66103a75e97203739ea to your computer and use it in GitHub Desktop.
Auto Login Page Error
<?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');
}
}
<?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');
@MaheKarim
Copy link
Author

Auto Login Prob
Folder Structure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment