Laravel Notification – notify using only email address
We can send On Demand Notifications using the Notification facade using an only email address. This is feature is available since Laravel 5.5 and above.
We can send On Demand Notifications using the Notification facade using an only email address. This is feature is available since Laravel 5.5 and above.
This is useful for migrations when you can’t rollback. It can easily be run in artisan mode or you can create a console command. foreach(\DB::select('SHOW
You can use laravel’s artisan command to check currently installed version of Laravel Framework Version of Laravel Issue below command from your terminal, make sure
You can use getQueryLog() method to get most recently executed queries. But in Laravel 5.1 it is disabled by default. So you have to enable
Here is the simple code snippet to get all the tables under the database in laravel framework. $tables = DB::select('SHOW TABLES'); dd($tables); I hope you
// categoriesCount.blade.php @inject('categories','App\categories') Total categories : {{ $categories->count(); }} or // routes.php view::composer('categories',function($view){ $view->with('categories','App\categories'); }); // categoriesCount.blade.php Total categories : {{ $categories->count(); }} I hope
Route::get('admin/home',['as' => 'home',function(){ echo 'admin home'; }]); // view echo route('home'); // output : http://localhost/admin/home Route::group(['prefix' => 'admin'],function(){ Route::get('home',['as' => 'home',function(){ echo 'admin home'; }]);
class NewMediaModel extends Model { public function getTableColumns() { return $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable()); } } I hope you like this Post, Please feel free to comment below,
@if($errors->has()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif I hope you like this Post, Please feel free to comment below, your suggestion and