Can you show your routes file?

|
bryan_king 2021-12-19 09:33:11
natghi2010 2021-12-19 08:00:59
Well, by manually generating his own routes, hes opened himself to future problems.

So what exactly is wrong with generating own routes ? I choose single action controllers all the time over resource controllers . So what exactly do u mean by future problems by generating own routes ?

Acird Burn 2021-12-19 10:14:51
An error occurred while retrieving token. DOMException: Registration failed – push service error has anyone faced this error before with laravel firebase push notifications
natghi2010 2021-12-19 10:42:20
bryan_king 2021-12-19 09:33:11
So what exactly is wrong with generating own routes ? I choose single action controllers all the time over resource controllers . So what exactly do u mean by future problems by generating own routes ?

I mean it generate the controllers using artisan its pretty much boilerplate.

bryan_king 2021-12-19 10:43:30
natghi2010 2021-12-19 10:42:20
I mean it generate the controllers using artisan its pretty much boilerplate.

Okay

Bright 2021-12-19 11:39:42
ukforizone 2021-12-18 21:14:02
Wy i am getting this error can anyone help me

Did you import the models

kartikkathuria 2021-12-19 11:52:14
For any Web Based Projects in reasonable prices DM me
themanojyadav 2021-12-19 16:05:51
Make a box and place you background image, and place a iframe inside box with absolute position and set the size of iframe according to you red frame. And place the iframe position by adjusting the top, left etc properties.
Manoj Mehta 2021-12-19 16:13:22
themanojyadav 2021-12-19 16:05:51
Make a box and place you background image, and place a iframe inside box with absolute position and set the size of iframe according to you red frame. And place the iframe position by adjusting the top, left etc properties.

It is not set on mobile

lxyous 2021-12-19 17:46:14
laravel_discuss-102673.jpg
excuse me, anyone can help me? i’ve change to method post but still
Doniyorbek8069 2021-12-19 17:51:11
lxyous 2021-12-19 17:46:14
excuse me, anyone can help me? i’ve change to method post but still

Csrf may be

lxyous 2021-12-19 17:53:26
Doniyorbek8069 2021-12-19 17:51:11
Csrf may be

why?

Amit Verma 2021-12-19 18:00:25
lxyous 2021-12-19 17:46:14
excuse me, anyone can help me? i’ve change to method post but still

in route file change to post from get

Amit Verma 2021-12-19 18:00:55
Route::get to Route::post
Pixr 2021-12-19 18:03:40
SQLSTATE[28000] [1045] Access denied for user
Pixr 2021-12-19 18:03:51
Why I’m getting this error
bryan_king 2021-12-19 18:25:44
Does anyone know why all my routes are returning 404 not found in test environment but returns 200 when I go through the browser ??
bryan_king 2021-12-19 18:31:34
bryan_king 2021-12-19 18:25:44
Does anyone know why all my routes are returning 404 not found in test environment but returns 200 when I go through the browser ??

I have tried all the artisan commands in the book but still nothing

drup9 2021-12-19 18:32:27
bryan_king 2021-12-19 18:25:44
Does anyone know why all my routes are returning 404 not found in test environment but returns 200 when I go through the browser ??

are you getting 404 when you use something like postman and sending the request with post?

drup9 2021-12-19 18:32:48
drup9 2021-12-19 18:32:27
are you getting 404 when you use something like postman and sending the request with post?

if so, it is most likely that you need to set those routes to post too..

bryan_king 2021-12-19 18:34:06
drup9 2021-12-19 18:32:48
if so, it is most likely that you need to set those routes to post too..

They are all get requests . Works well in browser but returns 404 for all routes in unit test

drup9 2021-12-19 18:34:24
bryan_king 2021-12-19 18:34:06
They are all get requests . Works well in browser but returns 404 for all routes in unit test

can you show your routes file?

bryan_king 2021-12-19 18:36:16
drup9 2021-12-19 18:34:24
can you show your routes file?

That’s a bit of problem because am away from my pc . Any ideas ?? If the routes file is wrong shouldn’t it also break things when I go through the browser or postman ?

drup9 2021-12-19 18:36:42
bryan_king 2021-12-19 18:36:16
That’s a bit of problem because am away from my pc . Any ideas ?? If the routes file is wrong shouldn’t it also break things when I go through the browser or postman ?

not necesarily.. because your .env file could be hiding the error msgs

bryan_king 2021-12-19 18:37:38
drup9 2021-12-19 18:36:42
not necesarily.. because your .env file could be hiding the error msgs

It’s set to local

drup9 2021-12-19 18:37:58
bryan_king 2021-12-19 18:37:38
It’s set to local

there is a variable to show debuggin errors

bryan_king 2021-12-19 18:38:29
drup9 2021-12-19 18:37:58
there is a variable to show debuggin errors

App_debug=true

bryan_king 2021-12-19 18:38:51
drup9 2021-12-19 18:37:58
there is a variable to show debuggin errors

Same in phpunit.xml

drup9 2021-12-19 18:39:14
bryan_king 2021-12-19 18:38:29
App_debug=true

well. theres not much to do without the routes file and see whats really going on

drup9 2021-12-19 18:39:59
but my wild guess is that all of your routes are GET, and that’s why you can see them on the browser, but if you try to make a fetch request on the console and setting the method to post, it would fail
drup9 2021-12-19 18:40:31
OR, you are sending the request to the wrong direction because somewhere is a prefix
drup9 2021-12-19 18:40:45
either on the routes, or on the request
bryan_king 2021-12-19 18:41:35
drup9 2021-12-19 18:39:59
but my wild guess is that all of your routes are GET, and that’s why you can see them on the browser, but if you try to make a fetch request on the console and setting the method to post, it would fail

Am using ‘getJson’ method for the test cases

bryan_king 2021-12-19 18:42:12
drup9 2021-12-19 18:40:31
OR, you are sending the request to the wrong direction because somewhere is a prefix

I use named routes and it should throw an exception if I pass in an invalid route name

bryan_king 2021-12-19 18:42:51
They where all working before now . Am super confused
drup9 2021-12-19 18:42:59
bryan_king 2021-12-19 18:42:12
I use named routes and it should throw an exception if I pass in an invalid route name

🤷 without code there is not much to do

|