Let's get started quickly I found new things in Laravel 9.6 Released I wanted to share with you.
- Added whenTableHasColumn and whenTableDoesntHaveColumn on Schema Builder
https://github.com/laravel/framework/pull/41517
Schema::whenTableDoesntHaveColumn('product', 'order', function (Blueprint $table) { $table->unsignedInteger('order')->default(0); }); Schema::whenTableHasColumn('product', 'order', function (Blueprint $table) { $table->dropColumn('order'); });
Show Closure Location on the schedule:list
https://github.com/laravel/framework/pull/41494Show Job class instead of closure on schedule:list
https://github.com/laravel/framework/pull/41535Add hasSubject method to Mailables
https://github.com/laravel/framework/pull/41575/files
public function testMailableSetsSubjectCorrectly() { $mailable = new WelcomeMailableStub; $mailable->subject('foo'); $this->assertTrue($mailable->hasSubject('foo')); }
I hope you enjoyed with me and to learn more about this release visit the sources and search more. I adore you who search for everything new.
Source :- https://www.youtube.com/watch?v=dPHU_9j2RkU
Top comments (0)