Search in Snippets
 

All Projects

Building mini ecommerce in Laravel

Building RESTful APIs in Laravel

Building Mini Issue tracker with Laravel and Vue



All Snippets

Disabling registration but keeping login for a site

Sometimes keeping login active, registration to the site needs to be disabled. It can be done with following snippet. //...


Selecting last row of a table

It can be done using latest() method. Here function parameter can be empty or it can have field name upon...


Using view composer for sending seo meta title to layout file

Step 01: Creating view composer file in App\View\Composers directory with name MetaComposer.php namespace App\View\Composers;use App\Models\Post; use Illuminate\View\View; class MetaComposer {...


Running Artisan command for a specific seeder

Step 01: Specifying migration definition of comments tableSchema::create('comments', function (Blueprint $table) { $table->id(); $table->text('comment_text'); $table->timestamps(); }); Step 02: Specifying data...


Implementation of github project Performance 3 out of memory - Part-2

From Part 1 the rest of the steps will go here in part 2.Step 01: Creating UserController using artisan commandphp...


Implementation of github project Performance 3 out of memory - Part-1

Step 01: create fresh laravel projectcomposer create-project laravel/laravel performance3Step 02: Setting Up Post model, migration and factory and Comment model...


Implementation of github project Performance 1 - Part-2

From Part 1 the rest of the steps will go here in part 2.Step 01: Creating PostController using artisan commandphp...


Implementation of github project Performance 1 from laravel daily repository - Part-1

Step 01: create fresh laravel projectcomposer create-project laravel/laravel performance1Step 02: Setting Up Post model, migration and factoryphp artisan make:model Post...


Using pluck() method of Laravel Collection

It helps to retrieve array for a given key.  $categories = Category::where('is_popular',1)->pluck('id'); Example above, fetches list of category ids only...


Getting last inserted id

Following approach can be done to get the last inserted id of a model. Step 01: Using mass assignment in...


mahfooz

Hello, I am Mahfoozur Rahman and LCS is a site where I have been put together all my development experience with laravel in tutorials and step by step manner.

I am also working remotely for clients with development services so that they can achieve their business goals.

If that is what you want, you can contact me on mahfoozur.rahman.bd@gmail.com

I am currently also available for freelance work.

Categories

VS Code Tips and Tricks (2)
Restful API (1)
Coding Assistance (1)
Database Concepts (1)
Schema Design (0)
Data Retrieval (1)
Searching Data (0)
DevOps (1)
Amazon web services (1)
Livewire (1)
Crud (1)
Storage and retrieval (1)
Caching (1)
Frontend (2)
Select dropdown (2)
File Uploads (1)
File Uploads (1)
Vue (2)
Vite Vue (1)
Mixin (1)
Packages (1)
Debugging (1)
Security (1)
Authentication (1)
View (1)
View Composer (1)
Projects (99)
Model Performance (4)
Registration (1)
Login (1)
Restful API (16)
Topic oriented Community (1)
Mini Ecommerce (38)
Mini Blog (2)
Mini Issue tracker (28)
Database tables and data scaffolding (1)
Stripe (1)
Topic oriented user community (6)
Collections (7)
Collection Methods (7)
Sessions (2)
Storing Data (1)
Retrieving Data (1)
Improvements (7)
Laravel Code Snippets (6)
Mini Ecommerce (1)
Definitions (2)
Generating Commands (0)
Eloquent Builder (1)
Resource Controllers (0)
Seeding (1)
Executing Commands (0)
Controller (4)
Resource Controllers (0)
Middleware (4)
My Weeknesses (1)
My Weekness (1)
Eloquent ORM (50)
Eloquent Builder (30)
Seeding (4)
Relationship (6)
Configurations (8)
Accessors (2)
Artisan Console (4)
Executing Commands (4)
Generating Commands (0)