Why does it ask to log in when viewing a page with database data if your enter without authorization?

|
saboorhamedi 2021-02-19 12:16:38
segungreat 2021-02-19 12:15:15
Yes, it won’t work just and example of how to do the routing

as I have read the route is okay, if not it won’t display the page without /

segungreat 2021-02-19 12:21:24
saboorhamedi 2021-02-19 12:16:38
as I have read the route is okay, if not it won’t display the page without /

The one showing is from the posts resources route, are you showing the post from PagesController or PostController

Relaxed Guy 2021-02-19 12:26:40
Guys how do I implement can on two roles if user is admin and the same time manager
saboorhamedi 2021-02-19 12:27:17
segungreat 2021-02-19 12:21:24
The one showing is from the posts resources route, are you showing the post from PagesController or PostController

resource is postconroller and other files are pagescontroller

saboorhamedi 2021-02-19 12:28:22
segungreat 2021-02-19 12:21:24
The one showing is from the posts resources route, are you showing the post from PagesController or PostController

I got my point

segungreat 2021-02-19 12:31:56
saboorhamedi 2021-02-19 12:28:22
I got my point

Have you solve the problem?

saboorhamedi 2021-02-19 12:33:36
segungreat 2021-02-19 12:31:56
Have you solve the problem?

Kinda of but I get another error, I have put all my routes in resouce so I don’t need to make another route for the show right ?

saboorhamedi 2021-02-19 12:33:58
count(): Argument #1 ($var) must be of type Countable|array, null given (View: C:xampphtdocsfirstlaravelresourcesviewspostsindex.blade.php)
I’m getting this error
saboorhamedi 2021-02-19 12:39:33
segungreat 2021-02-19 12:31:56
Have you solve the problem?

Its done

saboorhamedi 2021-02-19 12:39:43
thanks guys
Rashid 2021-02-19 12:49:18
segungreat 2021-02-19 11:25:09
Is product_categories the name of the model class?

yes

FH 2021-02-19 13:36:06
salam dadasha
FH 2021-02-19 13:36:25
ki irani hast
Djuraev_Oybek 2021-02-19 13:45:34
Hello every body.

Why does it ask to log in when viewing a page with database data if your enter without authorization?

I’m using voyager admin

lectron 2021-02-19 14:05:41
natghi2010 2021-02-15 15:08:33
<body>
<h1>Sample Header</h1>
hello world
</body>

Just check out Beautiful Soup Library, it is standard. You use the text function targeting the body tag. It will get the direct text under any tag

natghi2010 2021-02-19 14:13:09
lectron 2021-02-19 14:05:41
Just check out Beautiful Soup Library, it is standard. You use the text function targeting the body tag. It will get the direct text under any tag

Wont it return Sample Header + hello world?

Sandhya M 2021-02-19 14:31:46
laravel_discuss-70901.jpg
This is my controller page . I got error in getURL function
Sandhya M 2021-02-19 14:32:13
laravel_discuss-70902.jpg
How i can resolve this?
Sandhya M 2021-02-19 14:54:50
Sandhya M 2021-02-19 14:32:13
How i can resolve this?

If anybody knows please help mi

Maranmani_dev 2021-02-19 14:57:23
Sandhya M 2021-02-19 14:54:50
If anybody knows please help mi

share your controller file

TecherrorNR9 2021-02-19 15:01:52
My laravel controller not working
Kriti Agarwal 2021-02-19 15:16:24
Can anyone help me in optimising a query with group by clause as the table contains 100k of data and query is taking too long in mysql
Sandhya M 2021-02-19 15:16:42
Maranmani_dev 2021-02-19 14:57:23
share your controller file

This is controller file . please check this and help me

Maranmani_dev 2021-02-19 15:20:17
Sandhya M 2021-02-19 15:16:42
This is controller file . please check this and help me

getURLList function doesnot exist in controller

natghi2010 2021-02-19 15:24:24
Sandhya M 2021-02-19 14:31:46
This is my controller page . I got error in getURL function

sir, why have you named the function insert but return the view

natghi2010 2021-02-19 15:25:57
Sandhya M 2021-02-19 14:31:46
This is my controller page . I got error in getURL function

and also sir, you will face many more problems like this because you use sublime.

natghi2010 2021-02-19 15:27:43
laravel_discuss-70919.jpg
see how it helps in vs code.
Sandhya M 2021-02-19 15:28:23
wait i will check this . Thanks for helping me. this is my first laravel project.
natghi2010 2021-02-19 15:28:44
Sandhya M 2021-02-19 15:28:23
wait i will check this . Thanks for helping me. this is my first laravel project.

no problem sir.

natghi2010 2021-02-19 15:32:11
Sandhya M 2021-02-19 15:28:23
wait i will check this . Thanks for helping me. this is my first laravel project.

also sir, try labeling your variables with meaning. if you use variables like $l_d it will be more confusing for the next person or even yourself if you read the code after a year. I would suggest changing it to $labour = new LabourModel.

Sandhya M 2021-02-19 15:32:42
okk . i will
natghi2010 2021-02-19 15:33:18
Sandhya M 2021-02-19 15:32:42
okk . i will

my last tip is sir is there are predefined route names,

natghi2010 2021-02-19 15:33:47
index
show
create
edit

store
update
delete

natghi2010 2021-02-19 15:34:29
basically the first 4 are get functions
natghi2010 2021-02-19 15:36:10
try to to read about them
|