Adding CSS File :-
<link rel="stylesheet" href="{{URL::asset('assets/css/bootstrap.min.css')}}">
Adding JS File :-
<script type="text/javascript" src="{{URL::asset('assets/js/angular/angular.min.js')}}"></script>
<link rel="stylesheet" href="{{URL::asset('assets/css/bootstrap.min.css')}}">
<script type="text/javascript" src="{{URL::asset('assets/js/angular/angular.min.js')}}"></script>
$rules = array(
'username' => 'required',
'email' => 'required | between:5,100 | email ',
'password' => 'required | confirmed |regex:/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()+]+.*)[0-9a-zA-Z\w!@#$%^&*()+]{8,}$/'
);
$input = Input::all();
$validation = Validator::make($input, $rules);
if ($validation->fails()){
//if validation fails redirect with inputs
return redirect()->route('/')->withInput()
->withErrors($validation);
}
window.location.hash="no-back-button";
window.location.hash="Again-No-back-button";//again because google chrome don't insert first hash into history
window.onhashchange=function(){
window.location.hash="";
history.replaceState('', document.title, window.location.pathname);
}
// remove fragment as much as it can go without adding an entry in browser history:
window.location.replace("#");
// slice off the remaining '#' in HTML5:
if (typeof window.history.replaceState == 'function') {
history.replaceState({}, '', window.location.href.slice(0, -1));
}
$mail->AddAttachment('path_for_pdf', $name = 'Name_of_pdf', $encoding = 'base64', $type = 'application/pdf');