Have you ever needed to create access levels in your project?

|
nowodev 2021-04-23 23:31:22
laravel_discuss-77916.jpg
When I dd($hostel), I get this
2021-04-23 23:32:02
In route pass {hostel} instead of id
2021-04-23 23:33:23
Thn laravel automatic find hotel
2021-04-23 23:36:52
This is called laravel route model binding
2021-04-23 23:38:45
show me your edit route
nowodev 2021-04-23 23:41:01
2021-04-23 23:32:02
In route pass {hostel} instead of id

Found the solution.

nowodev 2021-04-23 23:41:35
laravel_discuss-77922.jpg

nowodev 2021-04-23 23:41:49
Thanks for your help
2021-04-23 23:42:13
Ok in method and route parameter must be same for route model binding
2021-04-23 23:43:55
Ok but you can also do just change your id to hostel in route and thn in controller edit(Hostel $hostel)
nowodev 2021-04-23 23:50:19
2021-04-23 23:43:55
Ok but you can also do just change your id to hostel in route and thn in controller edit(Hostel $hostel)

But I used a resource controller.

I just want peace please 2021-04-23 23:50:37
https://www.cyber-warrior.org/Forum/laravel-8-ile-restfull-api-gelistirme_640818,0.cwx

Erişim Engellendiwww.cyber-warrior.org
Cyber-Warrior.Org / AKINCILAR Turkiye’nin Siber Sivil Savunma Gucu – Turk Hackerlar
maudrico 2021-04-24 02:17:51
https://youtu.be/Jc3lLW8CWUU

PERMISSIONS AND ROLES IN LARAVEL (ACL)YouTube
Have you ever needed to create access levels in your project?
I find it very difficult and complex to create?
How about developing it all in a quick and simple way?
That’s what we’re going to teach you now

Link Article: https://medium.com/p/7875bfd73ef

WEBLYSS SOFTWARE 2021-04-24 06:19:02
HI,ANYONE INTERESTED FOR OWN DOMAIN BASED GMAIL ACCOUNT (BUSINESS/PROFESSIONAL EMAIL,30 GB SPACE) IN A DISCOUNTED COST. PLS PM OR CALL +918763609732/SALES@WEBLYSS.COM ( ONLY SERIOUS INQUIRY PLS),THANK YOU.
GauravGohil 2021-04-24 09:31:19
laravel_discuss-77936.jpg

GauravGohil 2021-04-24 09:32:03
GauravGohil 2021-04-24 09:31:19

When condition is true the if part is getting executed but when the condition is false the else is part is not getting executed can anyone tell me why it is happening

GauravGohil 2021-04-24 09:32:57
Please help
night days 2021-04-24 09:53:56
Try removing that code to see what happens
Prem Soni 2021-04-24 10:13:12
GauravGohil 2021-04-24 09:32:03
When condition is true the if part is getting executed but when the condition is false the else is part is not getting executed can anyone tell me why it is happening

check by printing something in else so we can see else is working or not?

saboorhamedi 2021-04-24 10:26:25
laravel_discuss-77942.jpg
Hello folks, could you please tell me why my pagination is ugly
saboorhamedi 2021-04-24 10:27:45
laravel_discuss-77943.jpg
It suppose to be something like this
Auditore_1459 2021-04-24 10:29:05
saboorhamedi 2021-04-24 10:26:25
Hello folks, could you please tell me why my pagination is ugly

Check the classes of these btns. Some of your css is rewriting the default styles

saboorhamedi 2021-04-24 10:29:52
<div class=”d-flex justify-content-center”>
{{ $posts->links() }}
</div>
saboorhamedi 2021-04-24 10:30:12
this is the entire element here
saboorhamedi 2021-04-24 10:32:05
Auditore_1459 2021-04-24 10:29:05
Check the classes of these btns. Some of your css is rewriting the default styles

Thank you, I just solved the problem

saboorhamedi 2021-04-24 11:34:15
Attempt to read property “name” on null : I’m getting this error, even thought my image column is nullable
saboorhamedi 2021-04-24 11:34:52
I have add this in my Post model: public function user()
{
return $this->belongsTo(User::class, ‘user_id’);
}
saboorhamedi 2021-04-24 11:55:55
saboorhamedi 2021-04-24 10:29:52
<div class=”d-flex justify-content-center”>
{{ $posts->links() }}
</div>

laravel_discuss-77950.jpg
I don’t understand why I get this error suddenly, even I had no user I did not get this error but suddenly I get this error after deleting my user

2021-04-24 11:59:27
laravel_discuss-77951.jpg
Guys I need help, I am installing LARAVEL on my windows 10 pc n this error keep coming up
saboorhamedi 2021-04-24 12:13:07
2021-04-24 11:59:27
Guys I need help, I am installing LARAVEL on my windows 10 pc n this error keep coming up

Try through the composer

2021-04-24 12:14:06
saboorhamedi 2021-04-24 12:13:07
Try through the composer

How

saboorhamedi 2021-04-24 12:15:09
composer create-project –prefer-dist laravel/laravel blog
vishnumanimala 2021-04-24 12:15:52
hi guys i need a help, how to send json data to an external url.!
smartnathan2020 2021-04-24 12:15:58
2021-04-24 11:59:27
Guys I need help, I am installing LARAVEL on my windows 10 pc n this error keep coming up

Enable the fileinfo extension in your php.ini

2021-04-24 12:16:57
saboorhamedi 2021-04-24 12:15:09
composer create-project –prefer-dist laravel/laravel blog

Okay

|