← prev | next →
Kamalwebdev 2020-11-10 08:43:33
OrderController@upst
profsr123 2020-11-10 08:43:40
is it?
Kamalwebdev 2020-11-10 08:43:44
And the function is ups
Kamalwebdev 2020-11-10 08:44:41
Please correct the function name and in route then try
profsr123 2020-11-10 08:45:52
page expired
profsr123 2020-11-10 08:46:02
again same issue
Kamalwebdev 2020-11-10 08:46:20
Show me route again
profsr123 2020-11-10 08:46:53
Route::post(‘/addbrand’,”AppHttpControllersOrderController@up_s”)->name(‘ups’);
profsr123 2020-11-10 08:47:10
public function up_s(Request $request){
$cos=cos::create([
‘order_id’ => $request ->order_id,
‘order_status_id’ => $request->order_status_title,
‘updated_on’ => now(),
‘updated_by’ => Auth::user()->id
]);
Unknownuser009 2020-11-10 08:47:47
Route::post(‘/addbrand’,”up_s::class”)->name(‘ups’);
Larainix 2020-11-10 08:47:51
profsr123 2020-11-10 08:45:52
page expired
What version of laravel?
profsr123 2020-11-10 08:48:00
8bro
Unknownuser009 2020-11-10 08:48:07
“AppHttpControllersOrderController
Unknownuser009 2020-11-10 08:48:17
At name space
Unknownuser009 2020-11-10 08:48:28
Try above statement
Larainix 2020-11-10 08:49:26
profsr123 2020-11-10 08:48:00
8bro
Add. @csrf inside your form scope and try again
profsr123 2020-11-10 08:51:12
Invalid route action: [up_s::class]
Kamalwebdev 2020-11-10 08:51:35
Larainix 2020-11-10 08:49:26
Add. @csrf inside your form scope and try again
Do this first
profsr123 2020-11-10 08:53:50
tanx bros
2020-11-10 09:14:46
My new achivement… all fields are dynamic and retrieving from database.. while inserting id
Dushyantsinghds 2020-11-10 09:35:38
Hiring for part-tume full stack Laravel Dev. For high paid projects, experience :2-3 years
If anybody interested so please ping me.
profsr123 2020-11-10 10:02:21

why this happens
profsr123 2020-11-10 10:02:43

code
Ameerul Adib MZA 2020-11-10 10:04:07
profsr123 2020-11-10 10:02:43
code
your bottom most endforeach need to be under </tr>
2020-11-10 10:36:17
https://youtu.be/05wM4JSEjJs
website cloning using HTTrack –
YouTubeThis video is about how we can clone UI of any website using HTTrack Tool.
FrankMueke 2020-11-10 11:59:22
FrankMueke 2020-11-10 12:00:02
Trynna integrate zoom with laravel+vue and am getting this error. Someone help
FrankMueke 2020-11-10 12:00:12
“Joining meeting timeout.
Download wasm files error, please check your network and firewall.”
natghi2010 2020-11-10 13:21:52
Hi i wanted to make a system where the user can be teacher or student
natghi2010 2020-11-10 13:22:20
so I have user table and( student + teacher table)
natghi2010 2020-11-10 13:22:58
So i wanted to link both of them to the user table with relationships using the user_type field in the user table
natghi2010 2020-11-10 13:24:06
if the user is a student, then the relationship should be with the student table and if the user is a teacher it should be with a teacher table
natghi2010 2020-11-10 13:24:22
can I do this?
JeevaniSM 2020-11-10 13:32:50
natghi2010 2020-11-10 13:24:22
can I do this?
SURE you can,
all you need is a single table for users where you have a field to mention the designation as STUDENT / TEACHER ( you can also use flags like 1 / 2 )
natghi2010 2020-11-10 13:33:15
JeevaniSM 2020-11-10 13:32:50
SURE you can,
all you need is a single table for users where you have a field to mention the designation as STUDENT / TEACHER ( you can also use flags like 1 / 2 )
that part I understand
natghi2010 2020-11-10 13:33:25
but when it comes to relationships
natghi2010 2020-11-10 13:33:39
can i make conditional relationships?
JeevaniSM 2020-11-10 13:33:57
natghi2010 2020-11-10 13:33:39
can i make conditional relationships?
depends on your requirement, what is the task scenario ?
natghi2010 2020-11-10 13:34:58
JeevaniSM 2020-11-10 13:33:57
depends on your requirement, what is the task scenario ?
well its not that complicated. Basically I want to retrieve the users-info.
Bascially, $user->first_name
natghi2010 2020-11-10 13:35:16
the problem is the first->name could be in the teacher or the student table
natghi2010 2020-11-10 13:36:28
i could do this but isStudent flag and do
isStudent ? $user->student->first_name : $user->teacher->first_name
natghi2010 2020-11-10 13:37:01
but its going to be longwinded because i have to do this on every page
JeevaniSM 2020-11-10 13:37:31
hmm, you dont need do that kind of logic in view, rather you can do something like below
JeevaniSM 2020-11-10 13:37:47
$classrooms=classroomModel::where(‘id’,$id)->with(‘user’)->first();
in your view:
$classrooms->user->name;
JeevaniSM 2020-11-10 13:38:05
you will have to pass the ID // – determines its a teacher / stuent
natghi2010 2020-11-10 14:25:56
JeevaniSM 2020-11-10 13:37:47
$classrooms=classroomModel::where(‘id’,$id)->with(‘user’)->first();
in your view:
$classrooms->user->name;
I see thanks
fsalesb 2020-11-10 15:15:28
guys good morning, does anyone know how to do it or how can i search, when the user’s image is broken it shows the letters of the name?
JeevaniSM 2020-11-10 15:23:17
fsalesb 2020-11-10 15:15:28
guys good morning, does anyone know how to do it or how can i search, when the user’s image is broken it shows the letters of the name?
please explain further – user image broken?
fsalesb 2020-11-10 15:25:18
JeevaniSM 2020-11-10 15:23:17
please explain further – user image broken?
wanted something like that, if you don’t have a photo, it shows the user’s initials
JeevaniSM 2020-11-10 15:27:06
fsalesb 2020-11-10 15:25:18
wanted something like that, if you don’t have a photo, it shows the user’s initials
I assume the scenario as If the user image is not found / not upload / remove – then there should be a text shown, right ? its called ALT text in HTML
← prev | next →