Posts Learn Components new Snippets new Categories Tags About
/

Popular Code Snippets

Collection of the most popular Laravel snippets, AlpineJS snippets, VueJS snippets, Tailwindcss snippets, Flutter snippets, and more.
How to Update Column to Nullable in Laravel Migration cover

How to Update Column to Nullable in Laravel Migration

Learn how to update Laravel migration to make a column nullable after it's already migrated. Make use of these method to prevent rolling back migration and easily update any columns to nullable.

14 Oct 2021

How to easily download favicon from a website? cover

How to easily download favicon from a website?

Learn how to easily get website favicon by using google favicon snatcher

16 Aug 2021

How to Save Multiple Records at Once in Laravel Eloquent cover

How to Save Multiple Records at Once in Laravel Eloquent

Learn how to save multiple records at once by using saveMany() and

11 Aug 2021

How to get query builder to output its raw SQL query as a string in Laravel? cover

How to get query builder to output its raw SQL query as a string in Laravel?

Learn how to get the raw SQL string from a query builder in Laravel the easy way. Get to know this information to inspect the query used to retrieve the data.

23 Sep 2021

How to make an Axios POST request cover

How to make an Axios POST request

Learn how to make a POST request in Axios HTTP Client the easy way. Get to know how to pass headers and body data in Axios.

27 Aug 2021

How to Get Last Record (Row) in Laravel cover

How to Get Last Record (Row) in Laravel

Learn how to get the last record or row in Laravel using the Eloquent Model and DB facade the easy way

22 Oct 2021

How to Pass Data From Livewire Component to Layout Page cover

How to Pass Data From Livewire Component to Layout Page

Learn how to pass data from the Livewire Component to Base Layout page using layoutData method

31 Jul 2021

hasMany relation count number of relationship in laravel 8 cover

hasMany relation count number of relationship in laravel 8

Learn how to use withCount to count the number of relation of an eloquent model

30 Jun 2021

Laravel Eloquent "has", "whereHas", "with" and "load" Methods With Example cover

Laravel Eloquent "has", "whereHas", "with" and "load" Methods With Example

Get to know the difference between Laravel Eloquent "has", "whereHas", "with" and "load" methods with easy to understand code examples and implementation.

06 Oct 2021

How to Flush your DNS Cache on macOS Big Sur cover

How to Flush your DNS Cache on macOS Big Sur

Learn how to easily flush/clear your DNS cache on macOS Big Sur

30 Jul 2021

How to Multi-Line Truncate Text in Tailwind CSS cover

How to Multi-Line Truncate Text in Tailwind CSS

Learn how to truncate and clamp multi-line text in TailwindCSS

08 Jul 2021

How to Redirect back with Input and Error Message in Laravel 8 cover

How to Redirect back with Input and Error Message in Laravel 8

Learn how to redirect to the previous page after validation in Laravel with the input and error message to show validation to the user

10 Aug 2021