Posts by Author : tgugnani

To check if a table exists in a database using Pest test in Laravel, you can use the following code: it('checks if table exists in the database', function () { $tableName = 'your_table_name_he...
Read Article
To increase a value by a certain percentage on drag in Google Sheets, you can use the following steps: 1. Enter the initial value in a cell. 2. Position your mouse on A2, and go to the tab w...
Read Article
Its been a while that I have been recording videos for my 5Balloons Youtube channel, when it comes to recording audio, having a high-quality microphone is essential. A good microphone can make all the...
Read Article

CSS

Mar 30, 2023

tgugnani

The CSS selector to select n-th child element inside an another parent element would look something like this. Let's say you want to target the 5th p tag inside a div with the class post-content...
Read Article
When we use the php artisan queue:work command to start the queue worker process, this command runs jobs from the default queue To run a specific queue in Laravel using the following command, you c...
Read Article
If you are working with multiple database connections in your Laravel project. And you are looking to run migrations for specific database connection. php artisan migrate --database=mysql If...
Read Article
If you are looking to get rows created each day for a particular Model in your database, here is how you can achieve this. For this example, I have a User model, and I am looking to get the count o...
Read Article
If you are running a laravel job in production, and you are trying to seed data into your database table through a job then it might fail since in production db:seed and migration waits for user respo...
Read Article
Laravel Eloquent makes it very easy to grab records for different set of conditions. In this short post, let's see how it is to get all the records in your table that are created today, created yester...
Read Article
If you are developing and maintaining a Laravel package and if you are looking to install the package in your Laravel application, you can do so by adding the following code in your applications' comp...
Read Article