Skip to content

a junior dev blog, on PHP and Laravel

  • Home
a junior dev blog, on PHP and Laravel
Image Validation in Laravel

Image Validation in Laravel

Byphpjunior November 26, 2023November 26, 2023

Laravel has a few rules for the validation of images: let’s say we have a controller called UploadController. The upload operation takes happen here. and a view file that has a form for selecting the image: we use validate() method on request() to validate the data that is sent from…

Read More Image Validation in LaravelContinue

Laravel Task Scheduling

Laravel Task Scheduling

Byphpjunior November 15, 2023November 15, 2023

if you want to run a task or a job at a certain time automatically in Laravel you can use task scheduling. we used to write cron jobs to handle this but cron jobs are not written in the source code and for every change we needed to log into…

Read More Laravel Task SchedulingContinue

How to Use Observers in Laravel

How to Use Observers in Laravel

Byphpjunior November 8, 2023November 8, 2023

Observers are php classes that we can use to listen to events on an eloquent model. every eloquent model dispatches several events. for instance when we create or save a model ($product->save()) “created” and “creating” events are dispatched. we use observers to do an operation when these events are dispatched….

Read More How to Use Observers in LaravelContinue

Filament Custom Widgets: Create an Order Status Widget

Filament Custom Widgets: Create an Order Status Widget

Byphpjunior October 30, 2023October 30, 2023

The Filament admin panel has Charts, Tables and Stats Widgets by default. we can create our own custom widgets too. we are going to create custom a widget that shows the status of an order in an e-commerce website. Create Widget Class and View file i installed Filament and in…

Read More Filament Custom Widgets: Create an Order Status WidgetContinue

How to Create A Custom Faker for Product and Categories in Laravel

How to Create A Custom Faker for Product and Categories in Laravel

Byphpjunior October 23, 2023October 23, 2023

here we will create a custom faker for products in laravel

Read More How to Create A Custom Faker for Product and Categories in LaravelContinue

How to use Laravel Seeders?

How to use Laravel Seeders?

Byphpjunior October 20, 2023October 20, 2023

we will learn how we can seed data in Laravel using DB Facade, Eloquent and Model Factories.

Read More How to use Laravel Seeders?Continue

How to Customize Filament Admin Panel

How to Customize Filament Admin Panel

Byphpjunior October 13, 2023October 13, 2023

we learn how we can customize Filament Admin panel, we can change color, logo, and use our own custom assets.

Read More How to Customize Filament Admin PanelContinue

Create Custom Page in Filament: Role Permission Management Page

Create Custom Page in Filament: Role Permission Management Page

Byphpjunior October 6, 2023October 6, 2023

with Filament Admin Panel you can create custom pages however you want. here I am going to create a Role-Permission management page. it looks like this: Create a view and a class file for the page with this artisan command start creating the page You will have a class named…

Read More Create Custom Page in Filament: Role Permission Management PageContinue

How to Create a Custom Column for Filament Admin Panel

How to Create a Custom Column for Filament Admin Panel

Byphpjunior September 15, 2023September 15, 2023

Filament admin panel has a few useful column types we can use in a table: and more. if you need a type of column that is not available in filament by default, you can create it yourself. Here we are going to make a column that shows a very simple…

Read More How to Create a Custom Column for Filament Admin PanelContinue

How to Create and Read CSV Files with PHP

Byphpjunior July 29, 2023July 29, 2023

there is a function in php called fputcsv which helps us create a csv file. as the first parameter, it gets the file we opened with fopen, and for the second one, we put the array we want to put into the CSV file. it will be an array of…

Read More How to Create and Read CSV Files with PHPContinue

Page navigation

1 2 3 Next PageNext

© 2025 a junior dev blog, on PHP and Laravel

Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}
  • Home