I wrote a test case for my issue.
It should keep the id from the "main" eloquent model. I don't know if there is an alternative solution.
Fixes #16645
Current wrong result for this function:
{
"id": 4,
"name": "Administrator",
"description": "Some description here",
"created_at": "2016-12-20 22:53:47",
"updated_at": "2016-12-20 22:53:4...
https://github.com/laravel/framework/commit/893a044fb10c87095e99081de4d1668bc1e19997
Renamed the middleware but forgot to rename it on src/Illuminate/Foundation/Console/Optimize/config.php, this should address that…
Figured this would be useful here as well coming from https://github.com/laravel/laravel/pull/4074
Composer will now automatically sort packages when you require them.
If a single file in migrations database no longer exists or you use another migration folder structure, all rollback will fail. This update solve this.
Add schedule:list command for listing all scheduled commands:
VojtaSvoboda@Mac:~/Www/acme.com% php artisan schedule:list
0 * * * * * Notify upcomming events
0 * * * * * cache:clear (Cache clear)
0 0 * * * * node /home/acme/s...
Will assert that a view has been loaded
$this->seeView('home.widgets.trending');
Will assert that a view has not been loaded
$this->dontSeeView('home.widgets.trending');
Currently the timestamps column names created_at, updated_at are kinda hard coded, there is a getter for these names but sometimes the constant is used instead of using the getter, this PR fix that by always calling the getter instead of…
Currently the timestamps column names created_at, updated_at are kinda hard coded, there is a getter for these names but sometimes the constant is used instead of using the getter, this PR fix that by always calling the getter in…
Avoids code duplication and adds the possibility of using it like:
public function subscribe($events)
{
$events->listen(
User::getEvent('created'),
static::getListener('onUserCreated')
);
}
…
For the issue #16684 I found the problem on the MailFake class in recipientsMatch method.
When the mailable is sent the user email is pased like address and the recipientsMatch in the fake look for for user->email instead it should lo…
Fixes #16643
Currently the Grammar is appending not null and null when generating the virtualAs and storedAs columns.
This is an invalid syntax since these are generated columns so you can't use that…
if you try to use the uft8mb4 encoding, e.g. to store some emojis, and you use some index in your migration, you get the error described in https://laracasts.com/discuss/channels/general-discussion/migrations-configure-a-…
This PR add support for join when deleting records using SqlServer, following the logic used on the MySQL grammar.
Example of the result:
delete [users] from [users] inner join [contacts] on [users].[id] = [contacts].[id] ...
I think it would be better to add the abstract keyword to this class since it doesn't have any implementation aside the traits. Also it shouldn't be much of a difference for the traits itself
I think it would be better to add the abstract keyword to this class since it doesn't have any implementation aside the traits. Also it shouldn't be much of a difference for the traits itself
$shops = \App\Shop::open();
$shopQuery = $shops->getQuery()->select('street');
$houses = \App\House::whereIn('street', $shopQuery)->get();
instead of
$shops = \App\Shop::open();
$shopQuery =...