union is what i need, how do i do it in laravel?
How to be a Senior Junior Software Engineer?
tell me if your error has gone, ok ?
How I can Use Google chart in pdf ?
How would you write the function?
i have a problem, how can i solve?
Is it all about slack or discord?
did you try using a config file?
Since last time a played with this old query
SELECT * FROM trustee,limited_company ;
JOIN – You can use joins to combine columns from one or more queries into one result.
UNION – Use Unions and other set operators to combine rows from one or more queries into one result.
Sub Queries – Sometimes called nested queries, these can be used to perform a separate search in the database showed results can be used in another query.
UNION – Use Unions and other set operators to combine rows from one or more queries into one result.
Sub Queries – Sometimes called nested queries, these can be used to perform a separate search in the database showed results can be used in another query.
makes sense. union is what i need, how do i do it in laravel? this is where i am


Why you don’t just pass the tow results

how to make button to print the whole blade file , as pdf , exactly like this opetion
https://medium.com/@sedhossein/how-to-be-a-senior-junior-software-engineer-part-1-c205ce51810e
I should have know what I was getting into from the first couple of words. IMO he wrote so much but say to little.
I tried protected $guarded = []; but still i am getting the same error of create method does not exist
How to create custom command like {{csrf_field}} ?
With different name and action
I just need the instruction to create it
Thanks
Try with comment()
When you use ->comments you are accessing the relationship, a collection, so is right to say that a collection don’t have a create function
Thanks i’ll try it ..
How to create custom command like {{csrf_field}} ?
With different name and action
I just need the instruction to create it
Thanks
{!! csrf_field() !!}
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.
public function search(Request $request){
$search = $request->get(‘search’);
$trust = DB::table(‘trustee’)->get();
$ltd = DB::table(‘limited_company’)->get();
//my final data
$posts = $trust->union($ltd) ->where(‘agent_company’, ‘like’, ‘%’.$search.’%’);
return view(‘index’, [‘posts’ => $posts]);
public function search(Request $request){
$search = $request->get(‘search’);
$trust = DB::table(‘trustee’)->get();
$ltd = DB::table(‘limited_company’)->get();
//my final data
$posts = $trust->union($ltd) ->where(‘agent_company’, ‘like’, ‘%’.$search.’%’);
return view(‘index’, [‘posts’ => $posts]);
Read again the link you just linked, read to the end.
Date: 4th April 6:00 PM to 8:00 PM (sat-sun)
All interested can subscribe to my youtube channel
https://youtu.be/YJC5fYvG5AM (This is the live youtube session link, Click on it and set reminder in case you dont want to miss it. Dont forget to like it, so that we get to know the real count.
anyone can help me
i need to use different channels for
broadcast the notifications
like i need one for admins
and one for normal users
and found this way to Customize the original channel
public function receivesBroadcastNotificationsOn()
{
return ‘users.’.$this->id;
}
i need one for admin notification
and one for normal users
any suggestions please!!
public function receivesBroadcastNotificationsOn()
{
return ‘users.’ . $this->role . $this->id;
}
???????
anyideas??
Return private channel “admins”
In broadcatsrviceprovider implement auth for this channel
is for event class
not for notifications class