Skip to content

Author: Praveen Anaparthi

11+ years of IT industry experience holding a wide range of skill sets and roles with significant work on PHP, Node.js, Python, Ruby, Docker, React.js, Microsoft Azure, Azure DevOps, Windows PowerShell, Shell script, Jenkins, MongoDB, SQL, MySQL, Apache, Nginx. etc. It is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.

Injecting data With Blade

// 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(); }}

Leave a Comment

Named Route Groups

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’; }]);…

Leave a Comment