Can anyone suggest better way to start?
Is any packages available for the same?
Was it resolved?
And how do you translate it on view?
I use this code to attaching a relationship to a model with additional data to be insert into the intermediate table
$user->roles()-attach($roleId,[‘expires’ => $expires]);
Everything is ok.
My question is how to get the additional data in
$user->roles;
Thanks
I use this code to attaching a relationship to a model with additional data to be insert into the intermediate table
$user->roles()-attach($roleId,[‘expires’ => $expires]);
Everything is ok.
My question is how to get the additional data in
$user->roles;
Thanks
Anybody
read the doc, it’s not laravel problem
I use this code to attaching a relationship to a model with additional data to be insert into the intermediate table
$user->roles()-attach($roleId,[‘expires’ => $expires]);
Everything is ok.
My question is how to get the additional data in
$user->roles;
Thanks
$user->load(‘roles’) or $user->with(‘roles’)
it’s all written in doc
Where all the customers are store in a single database and each client need a separate Database. While using same code.
Can anyone suggest better way to start??
Yes
This makes updateing/migrating more complex/painful.
I personally used the same db approach, you have to be very careful though to include the tennant id into every query.
formulate you question better
I want a point base system if user place order of any thing i have to credit 5 point in here account
I personally used the same db approach, you have to be very careful though to include the tennant id into every query.
I meant different table
Was it resolved?
And how do you translate it on view?
I have two timestamp start-time, end time like this in my db coloumn votedate (09:45- 2:30),
now I need to compare this with (11:30-8:30)start-time ,endtime respectively
I am doing this to check if my stored db time is overlapped with my current input time or not
I tried to compare it with strtotime()but nothing works.
Please help
I have two timestamp start-time, end time like this in my db coloumn votedate (09:45- 2:30),
now I need to compare this with (11:30-8:30)start-time ,endtime respectively
I am doing this to check if my stored db time is overlapped with my current input time or not
I tried to compare it with strtotime()but nothing works.
Please help
You could convert to carbon and use compare https://carbon.nesbot.com/docs/#api-comparison
you can use mutator to acheive that
I think I’ll use a combination of mutator, accessor and const. Thank you
I use this code to attaching a relationship to a model with additional data to be insert into the intermediate table
$user->roles()-attach($roleId,[‘expires’ => $expires]);
Everything is ok.
My question is how to get the additional data in
$user->roles;
Thanks
In the relationship inside the model you can specify what additional attributes from the pivot table you will use
https://brainhub.eu/blog/electron-framework-example-apps/
Quizás te preguntas lo mismo pero como y con que se creo photoshop 🤩
La respuesta es *C* como lenguaje de programación y *QT* como Ide de desarollo de sistemas de alto rendimiento 👉🏼 https://www.qt.io/download
Saludos *Jorge Gutierrez*
https://www.instagram.com/jorgutiz/
*Academia*
https://www.instagram.com/bioonixacademy/
Study the most famous Electron JS app examples and discover reasons why Electron JS is the best desktop app framework available.
Thanks
But cant find any code or solution
You can maintain a separate session table to store the user logins. So, whenever they login, you can store their IDs in a row along with other details like user agent (browser), location, IP address, operating system and things like that.
I use this code to attaching a relationship to a model with additional data to be insert into the intermediate table
$user->roles()-attach($roleId,[‘expires’ => $expires]);
Everything is ok.
My question is how to get the additional data in
$user->roles;
Thanks
Use pivot, find hoe to use in Laravel documentation
Where all the customers are store in a single database and each client need a separate Database. While using same code.
Can anyone suggest better way to start??
Use multitenant
@php
$ursb_flag = pending;
$rowclass = ‘yellow’;
if ($ursb_flag !== approved)
{
$ursb_flag = $post->ursb_verify_flag;
if ($rowclass == ‘red’) $rowclass = ‘white’;
else $rowclass = ‘grey’;
}
@endphp
<tr class=”{{ $rowclass }}”>
<td>{{ $post->ursb_verify_flag }}</td>
</tr>
pending is my default value… i have 3 values coming from the db.. pending is yellow.. then approved is green
see in my code i am setting default to pending
