Posts by Author : tgugnani

If you have the URL of PDF which is situated on some other domain. You can allow it to be downloaded via your laravel application with following code $pdf = file_get_contents('http://www.africau....
Read Article
If you are looking to get the total number of records that are created / updated today in the mysql database, then the following Eloquent query will come handy. Considering we have a model named Po...
Read Article
I work as a full stack web developer and have been working remotely since the last six years. If you are new to working remote and looking to organize your desk or workspace for better productivity...
Read Article
Laravel's Storage facade makes it easier to get list of files within a directory. However if you are looking to get a list of files within the public directory, or any other directory within the publi...
Read Article
There are two ways to include Select2 plugin in your laravel project, one is via including the CDN and another is via NPM i.e. node package manager. I find handling the dependencies via NPM to be a...
Read Article
At times in your laravel validation, you may want input field to be validated only if the user filled in the field and you may want to skip the validation if there is field is left blank. This can be...
Read Article
Using Carbon library it is very simple to get yesterday's and tomorrow's timestamp in your PHP or Laravel code. You just need to import the Carbon library and call below functions Carbon::to...
Read Article

CSS

Aug 26, 2021

tgugnani

Simple post to demonstrate how you can divide your container, page or a div into two columns / parts using TailwindCSS. Make your div into grid and use grid-col-2 to divide it into two parts....
Read Article
When using laravel filesystem to upload files it automatically assigns a filename to the file. If you want to use the original filename or specify any other file name, you can do so by using storeAs m...
Read Article
By default, Bootstrap 5 does not include classes for the CSS cursor properties. Here is how you can quickly add these properties which is similar to tailwindcss in your Bootstrap 5 library. @import "...
Read Article

Sponsors

This website has NO spammy ads, distracting popups, and tracking codes. Thanks to our sponsors!

Email Newsletter

Sign up for our email newsletter to stay up to date.

We will never send any spam emails. Promise.