I uploaded my laravel to ubuntu digitalocean, , , getting this error, , , any help for permissions?

|
ksovary 2022-07-03 19:54:42
InjaPMBedeh 2022-07-03 19:52:11
Can anyone tell me what routes are generated by the below code:

Route::resource(‘posts.comment’, ‘controller’);

For some reasons, I can not run route:list myself; please one of you guys send me the detailed information about the generated routes.

You mean command artisan to generate route?

InjaPMBedeh 2022-07-03 19:54:53
Edifice_Solutions 2022-07-03 18:30:24
I uploaded my laravel to ubuntu digitalocean,,, getting this error,,, any help for permissions ?

A practical, but not correct way to solve.

chmod 777 ../laravel -R

anujrock1 2022-07-03 19:54:54
Any one can suggest me good package for laravel api documentation?
Rakesh 2022-07-03 19:57:01
InjaPMBedeh 2022-07-03 19:52:11
Can anyone tell me what routes are generated by the below code:

Route::resource(‘posts.comment’, ‘controller’);

For some reasons, I can not run route:list myself; please one of you guys send me the detailed information about the generated routes.

https://laravel.com/docs/9.x/controllers#resource-controllers

Laravel – The PHP Framework For Web ArtisansLaravel
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Rakesh 2022-07-03 19:57:15
Check the doc here
InjaPMBedeh 2022-07-03 19:57:25
ksovary 2022-07-03 19:54:42
You mean command artisan to generate route?

Isn’t my message clear? It seems it’s not been.

When you write Route::resource(‘posts’), it automatically generates multiple routes like the following:

Route::get(…)->name(‘posts.index’);
Route::get(…)->name(‘posts.show’);
Route::post()->name(…);
Route::delete ….

I want a detailed list, of the above routes in a nested form of Route::resource

> * When you run Route::resource(‘posts.comments’) it become nested.

DesolatorMagno 2022-07-03 20:01:56
In the documentation is a clear example of each one of the routes generates by resource, just check the previous link.
InjaPMBedeh 2022-07-03 20:02:50
DesolatorMagno 2022-07-03 20:01:56
In the documentation is a clear example of each one of the routes generates by resource, just check the previous link.

The shown list in the documentation is not nested.

InjaPMBedeh 2022-07-03 20:03:53
DesolatorMagno 2022-07-03 20:01:56
In the documentation is a clear example of each one of the routes generates by resource, just check the previous link.

laravel_discuss-127742.jpg
and this one is shallowed

DesolatorMagno 2022-07-03 20:03:55
I have use route group prefix when I need something like user.post
DesolatorMagno 2022-07-03 20:04:49
Prefix(user.
Route:: resource (posts)
InjaPMBedeh 2022-07-03 20:05:47
DesolatorMagno 2022-07-03 20:03:55
I have use route group prefix when I need something like user.post

If it is possible for you, just write the following code in your routes file:

Route::resource(‘posts.comments’, ‘Controller’);

and after running php artisan route:list, send me the result 🌷

InjaPMBedeh 2022-07-03 20:06:45
DesolatorMagno 2022-07-03 20:04:49
Prefix(user.
Route:: resource (posts)

By the way, nice to meet you sir! I have known you for some times, but I’ve changed my account 😉

DesolatorMagno 2022-07-03 20:06:47
I am cleaning today the PC is off, sorry.
anujrock1 2022-07-03 20:08:06
Can anyone tell me best package for api Documentations?
Waxikevin 2022-07-03 20:09:53
anujrock1 2022-07-03 20:08:06
Can anyone tell me best package for api Documentations?

There a package by beyondco.de

anujrock1 2022-07-03 20:11:42
Waxikevin 2022-07-03 20:09:53
There a package by beyondco.de

Okay thanks will look it

Bright 2022-07-03 20:24:56
Anyone’s knows any react group please
zey34354 2022-07-03 21:41:06
can I connect my phpstprm with cpanel to update my codes when i want to make that
Nidhi Sharma 2022-07-03 21:54:21
Yes… I am available
Raj 2022-07-03 21:54:38
DM.me
Noiamnotavailable 2022-07-03 22:05:38
Issue :

If Form Checkbox Checked
Show This Value

Need condition for that.

DesolatorMagno 2022-07-03 22:06:49
That’s JS.
Noiamnotavailable 2022-07-04 01:37:05
DesolatorMagno 2022-07-03 22:06:49
That’s JS.

What will be condition then ?

Anuj 2022-07-04 09:39:53
bagisto package and krayin package
Anuj 2022-07-04 09:40:04
which one is good for crm
Denno_IT 2022-07-04 10:28:13
laravel_discuss-127770.jpg

Denno_IT 2022-07-04 10:28:14
laravel_discuss-127772.jpg

Denno_IT 2022-07-04 10:28:14
laravel_discuss-127771.jpg

Denno_IT 2022-07-04 10:28:24
Someone help me debug this small issue
Jonathan Antunes 2022-07-04 10:30:30
Denno_IT 2022-07-04 10:28:24
Someone help me debug this small issue

Do you have o model name “insurances”?

cccr85 2022-07-04 10:30:47
Denno_IT 2022-07-04 10:28:24
Someone help me debug this small issue

use App\Models\insurances

cccr85 2022-07-04 10:31:04
insurances bad name. Insurance
Denno_IT 2022-07-04 10:36:02
Jonathan Antunes 2022-07-04 10:30:30
Do you have o model name “insurances”?

Yes

Denno_IT 2022-07-04 10:36:29
cccr85 2022-07-04 10:31:04
insurances bad name. Insurance

But the model name should be in singular

ksovary 2022-07-04 10:36:52
Denno_IT 2022-07-04 10:28:24
Someone help me debug this small issue

Check import correct controller class name in HomeController

cccr85 2022-07-04 10:36:59
Denno_IT 2022-07-04 10:36:29
But the model name should be in singular

and first latter upper case

cccr85 2022-07-04 10:37:47
Bad: models Good: Model
cccr85 2022-07-04 10:37:58
and db table models
Denno_IT 2022-07-04 10:39:13
ksovary 2022-07-04 10:36:52
Check import correct controller class name in HomeController

My controller is called home controller.. And in this controller I have model called insurance with a migration called insurances.. This works very well but when I want to query the data now the issue comes in

ksovary 2022-07-04 10:41:54
Denno_IT 2022-07-04 10:39:13
My controller is called home controller.. And in this controller I have model called insurance with a migration called insurances.. This works very well but when I want to query the data now the issue comes in

which laravel version?

Jonathan Antunes 2022-07-04 10:42:26
cccr85 2022-07-04 10:30:47
use App\Models\insurances

Check his answer @Denno_IT. Create always your models on singular and import on your controller

Denno_IT 2022-07-04 10:43:27
Laravel 9
Denno_IT 2022-07-04 10:46:03
Jonathan Antunes 2022-07-04 10:42:26
Check his answer @Denno_IT. Create always your models on singular and import on your controller

So I should create a new model called insurances instead of using insurance?

ksovary 2022-07-04 10:46:42
Denno_IT 2022-07-04 10:43:27
Laravel 9

Check your model Class Name and remove
use App\Http\Controllers\insurances
try @cccr85 answer
Example: if your model class name(not filename) insurances

use App\Models\insurances

Jonathan Antunes 2022-07-04 10:49:11
Denno_IT 2022-07-04 10:46:03
So I should create a new model called insurances instead of using insurance?

Create a model called “Insurance”

Jonathan Antunes 2022-07-04 10:49:34
in your controller
Jonathan Antunes 2022-07-04 10:49:56
you have $data = insurances::all();
Jonathan Antunes 2022-07-04 10:50:09
change to $data = Insurance::all();
Denno_IT 2022-07-04 10:50:15
Jonathan Antunes 2022-07-04 10:49:11
Create a model called “Insurance”

My model is called insurance.. But database is the one is called insurances

|