Skip to content
Advertisement

Tag: laravel-8

Attempt to read property “permissions” on null in Laravel 8

I am trying to register a user to the system and assign the patient role by default. The problem arises in the RegisterController controller. In the create () method I write the following code: The error that laravel 8 throws is the following: Attempt to read property “permissions” on null It is not recognizing as such the related permissions of

Laravel:8.x Target class [ArticlesController] does not exist [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. Improve this question Hello my code is giving me this error: “Target class [ArticlesController] does not exist.” i tried to uncomment “protected $namespace = ‘AppHttpControllers’;” in RouteServiceProvider then it

How can I write this query with Eloquent

Let’s say I have a method like this: My question is, how can I rewrite this query with Eloquent for my Laravel project? Answer From what I understood I think this is what you are looking for, try it and tell me: You can get more information from the laravel Database documentation Query Builder here: https://laravel.com/docs/8.x/queries#raw-methods

How to automatically number each row in a table in laravel?

Please I want to automatically number each row when data is displayed from the database. Something like this so each row is numbered in ascending order from 1 to n depending on the data available in the database. How do I properly do that. Any Help please am new in laravel Answer If you are using blade, the laravel’s automatically

Laravel 8 – Multi Auth with two diffirent registration form?

I’m using laravel breeze as auth scaffolding package I want to know How can I create two diffirent registration form for two User Types here is a simple explanation of hwat I want to achieve: resources/auth/developer : developer-register.blade.php resources/auth/designer : designer-register.blade.php if the Visitor choose to register as “developer” it will display a diffirent form. and same thing for if

Advertisement