laravel-blade

How to use the Blade-Directive when made a multiauth (admins + bosses)?

梦想与她 提交于 2020-12-15 06:24:47
问题 I reviewed all tutorials on multiauth (without using is_admin) with different tables for different levels of authorization. I have two authorization entities: boss and admin (Manager and admin) However, unlike all these tutorials: I don't have a separate authorization page. The authorization window is located on the main page and appears when you click on the authorization icon (using JS, just display:block) All these tutorials have separate authorization pages for different roles (separately

Laravel custom javascript on blade is not working

二次信任 提交于 2020-12-15 06:22:47
问题 I have this situation where I want to pass data to a Bootstrap 4 modal. I have a list of records with their own links to edit and delete. Since I want to load a modal confirmation to delete a specific record, I need to pass several parameters, such as the ID for the destroy route. I have tried the solution of this Laracasts forum. However, first of all, the script does not work, since the console.log does not output anything. Note : I am using the app.js , so probably it has to do with the

Laravel htmlspecialchars() expects parameter 1 to be string, object given in my project?

心不动则不痛 提交于 2020-12-06 16:46:39
问题 So i'm trying to code a simple website form. But it has this htmlspecialchars error. I've tried to make {{ $message }} but it didn't work. has the same error. this is my controller : <?php namespace App\Http\Controllers; use Mail; use Illuminate\Http\Request; class ContactMessageController extends Controller { public function create() { return view('form'); } public function store(Request $request) { $this->validate($request, [ 'name' => 'required', 'email' => 'required|email', 'address' =>