Can i use a seperate root folder for backend and seperate root folder for frontend because the system is neat in laravel?

|
fredaster23 2022-06-16 13:47:01
Harr 2022-06-16 13:46:20
sub_town is a column in smalltown table and is not in townregister

Well you only use the townregister, might need to get the smalltown::data into a fresh line

fredaster23 2022-06-16 13:47:28
It can’t find it cause it’s not in that table.
Harr 2022-06-16 13:49:26
fredaster23 2022-06-16 13:47:28
It can’t find it cause it’s not in that table.

but what i interested is sub_town

fredaster23 2022-06-16 13:50:41
Harr 2022-06-16 13:42:38
$datacfa = townregister::orderBy(‘register_id’,’DESC’)

->with(‘smalltown’)
->where(‘state’, $state)
->where(‘county’, $county)
->where(‘sub_compartment’, $dataread->sub_townt)
->orderBy(“state”)
->orderBy(“county”)
->orderBy(“sub_townt”)
->get();

$smalltown = smalltown::with(‘sub_town’)->orderBy(‘id’,’DESC’)->get();

fredaster23 2022-06-16 13:50:58
Add smthng like this into your controller
fredaster23 2022-06-16 13:51:14
You can’t get it that way, if it’s not in there
fredaster23 2022-06-16 13:51:35
Make sure you add smalltown into the top with: use AppModelsSmalltown;
Harr 2022-06-16 13:52:12
fredaster23 2022-06-16 13:51:35
Make sure you add smalltown into the top with: use AppModelsSmalltown;

i have already

fredaster23 2022-06-16 13:52:24
Harr 2022-06-16 13:52:12
i have already

Then use it

segungreat 2022-06-16 13:58:14
Harr 2022-06-16 13:33:58
lluminateDatabaseQueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘sub_townt’ in ‘where clause

Column ‘sub_townt’ does not exist in the table

Harr 2022-06-16 13:59:26
Harr 2022-06-16 13:42:38
$datacfa = townregister::orderBy(‘register_id’,’DESC’)

->with(‘smalltown’)
->where(‘state’, $state)
->where(‘county’, $county)
->where(‘sub_compartment’, $dataread->sub_townt)
->orderBy(“state”)
->orderBy(“county”)
->orderBy(“sub_townt”)
->get();

but i should use because there is relationship between the two tables

Harr 2022-06-16 14:07:11
SQLSTATE[23000]: Integrity constraint violation: 1052 Column ‘state’ in where clause is ambiguous
Harr 2022-06-16 14:07:57
fredaster23 2022-06-16 13:52:24
Then use it

not working i have changed the query to use join

Harr 2022-06-16 14:10:37
$datacfa = townregister::orderBy(‘register_id’,’DESC’)

->join(‘smalltown’, ‘smalltown.register_id’, ‘=’, ‘townregister.register_id’)
->where(‘state’, $state)
->where(‘county’, $county)
->where(‘sub_townt’, $sub_townt)
->orderBy(“state”)
->orderBy(“county”)
->orderBy(“sub_townt”)
->get();

Harr 2022-06-16 14:10:57
Harr 2022-06-16 14:07:11
SQLSTATE[23000]: Integrity constraint violation: 1052 Column ‘state’ in where clause is ambiguous

this my error

Amit Sharma 2022-06-16 14:23:34
anyone pls suggest how to dynamic tabs without creating new route
Harr 2022-06-16 14:35:03
$datacfa = townregister::orderBy(‘register_id’,’DESC’)

->join(‘smalltown’, ‘smalltown.register_id’, ‘=’, ‘townregister.register_id’)
->where(‘smalltown.state’, $state)
->where(‘smalltown.county’, $county)
->where(‘sub_townt’, $sub_townt)
->orderBy(“smalltown.state”)
->orderBy(“smalltown.county”)
->orderBy(“sub_townt”)
->get();

G❤ AğŸ˜Ž 2022-06-16 14:57:02
hello friends since then i have this problem”Maximum execution time of 60 seconds exceeded” and would like to ask for help
chaparoglu 2022-06-16 15:08:56
Hello
Can i use a seperate root folder for backend and seperate root folder for frontend because the system is neat in laravel ? Or should it all be in web.php?

Thanks 🙂

Siberfx 2022-06-16 15:11:13
you can
suuwhooop 2022-06-16 15:11:21
chaparoglu 2022-06-16 15:08:56
Hello
Can i use a seperate root folder for backend and seperate root folder for frontend because the system is neat in laravel ? Or should it all be in web.php?

Thanks 🙂

You can

chaparoglu 2022-06-16 15:13:25
Siberfx 2022-06-16 15:11:13
you can

Thank you 🤘

ViperXm 2022-06-16 15:17:13
Guys..
ViperXm 2022-06-16 15:17:23
Please Help..
ViperXm 2022-06-16 15:17:41
My Bitnami Servers stopped automatically….
ViperXm 2022-06-16 15:17:52
And I don’t know why..
ExtremelyMad 2022-06-16 15:44:54
ViperXm 2022-06-16 15:17:52
And I don’t know why..

What do the logs say?

favourebrusi 2022-06-16 15:49:22
laravel_discuss-125798.jpg
I need help, this is production
LegendaryTimmy69 2022-06-16 15:50:29
favourebrusi 2022-06-16 15:49:22
I need help, this is production

Check your error log. It’s a 500 server error

favourebrusi 2022-06-16 15:51:10
Where can I find error log in laravel
ExtremelyMad 2022-06-16 15:54:27
favourebrusi 2022-06-16 15:51:10
Where can I find error log in laravel

Under the storage -> logs directory from the application root

fredaster23 2022-06-16 15:55:15
Is there any way to have multiple html tables in ajax $.each response loop?
a1n2ss3 2022-06-16 16:41:22
Inertia.js – The Modern Monolith
https://inertiajs.com/

Inertia.js – The Modern MonolithInertiajs
Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.
Severusxyz 2022-06-16 16:51:27
favourebrusi 2022-06-16 15:51:10
Where can I find error log in laravel

Storage/logs

vitalboyko 2022-06-16 17:39:04
laravel-usps
|