I have install laravel in my local server. I have route with following code
Route::get ( '/', function () {
return view ( 'welcome' );
});
Route::get('/home', 'HomeController@index');
And controller file with following code
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
echo 'test';
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
echo 'test1';exit;
return view('welcome');
}
}
But i am not able to access my view file name welcome.blade.php in resources/views directory. i have try following urls in web browser but i got blank page every time.
URL 1: http://localhost/StripeIntegration_laravel-master/public/home
URL 2: http://localhost/StripeIntegration_laravel-master/public/index.php/home
URL 3: http://localhost/StripeIntegration_laravel-master/public/
Please help me to solve out this.