The way you have set your code out isn't how Laravel should be used.
For best usage of Laravel you need to put your form html into the views folder under its own file for example: form.blade.php.
You then need to make a new controller php artisan make:controller FormController
I'd also suggest making a Requests folder: php artisan make:request FormRequest
Within the requests you brand each of your required html name=
fields for example:
public function rules()
{
return [
'name' => 'required',
'email' => 'required',
];
}
Within your routes file you'd then need to add:
Route::post('/link', 'FormController@submitForm');
Within your Controller you'd then do:
<?php
use \App\Http\Requests\FormRequest;
public function submitForm(FormRequest $formRequest)
{
// your logic would then go in here. Firstly fetch the request
$fetchData = $formRequest->get();
}
This is just the basic break down of what you should be doing. You'd obviously need to fill the logic in.
PS within the html as we have added requests to check if they've been filled you'd add something like:
@if ($errors->has('name'))
<span class="help-block">
<strong>{{ $errors->first('name') }}</strong>
</span>
@endif
I hope this gets you on to the right tracks of Laravel.
I'd also suggest taking a look at Laracasts as they have some great tutorials.