Instead of always having to include the button to open the modal, create the modal and all its contents, you can dynamically create the modal and load the route of the content you want to open in a very simple way. This allows you to still display the ever updated data without much effort in editing cases.
View composers are nice but they have some problems accocsiated with them.
1- you never know where the data is coming from when you look at your html
2- They offer no easy way of caching the result.
You can use the "widget pattern" to have much better performance and structure in your apps + many more bonuses ! :)
It's a bit tricky to figure out exactly where to put a breakpoint to quickly check your final sql statement before execution. This is for 4.2 but may be similar in
I want to use function attempt for login authenticate but i don't want send variable password
* If i run code this it will show error "Undefined index: password" and this below
vendor\laravel\framework\src\Illuminate\Auth\EloquentUserProvider.php
public function validateCredentials(UserInterface $user, array $credentials)
{
$plain = $credentials['password'];
return $this->hasher->check($plain, $user->getAuthPassword());
How can i do that . pls thank you
Hi,
I have 3 tables USER, ALBUMS, PHOTOS USER has one to many relation with ALBUMS, ALBUMS has one to many relation with photos. My relation mapping as follows