Category : Laravel

show validation errors in arabic language in laravel

how to show validation errors in arabic language in laravel

Redirecting back to a specific div section

how to redirect view back to a specific div section using id

Print a pdf file directly from Laravel

In case you want to directly print a pdf file from the browser in Laravel, here is a snippet of code that might help you do it.

Respect line breaks when display any text (like comment or snippet) [need content]

Respect line breaks when displaying any text depending on your line breaks when typing your comment or your snippet

Delete previous uploaded image when user uploading a new one

Delete previous uploaded image when user uploading a new one for profile picture (as example)

Upload Image and validate on it on laravel

how to upload image and validate on its properties and display it

Create eloquent query based on different criteria [Content needed]

Sometimes, you need to make an Eloquent query that is modified by adding different parts based on other criteria. A typical good example of this is when you submit an advanved search form elements, Then you will need to create a query and then add the criteria based on the different inputs from the form.

Use multiple select entries with filteration library

Sometimes you need to show & allow user a select box with multiple options to choose from, But sometimes also you need this to be filtered as there may be numerous options to choose from.

Creating a model with factory and seeder

Creating a model with factory and seeder