When you push your site to git or whatever version control you use, this gets stored forever. A more suitable solution would be to use environment variables. Thankfully, in Laravel, we can create an environment variable in our.envfile and reference it in our code whenever we need it. So ...
The CSS tailwind is the first frame where the components of UI improve the front-end development. The tailwind in laravel helps the user offer a unique set of classes that makes the development process user-friendly with standard design. The CSS is utility robust and allows users to perform h...
Knowing how to create them can also be a great skill for developers to have, whether creating landing pages for others or for personal projects. In this tutorial, I’ll show you how to create a landing page using a combination of Laravel 8, Vue.js, and Twilio SendGrid. It’s a ...
Say you want to fetch the value of a CSS property in a web page, one that is set using a stylesheet. How can you do so?
In the real world, you should define ways for Laravel to insert/update data in the database. Notice also that when displaying the “Cars” information, we didn’t access the “Cars” class (i.e., in “routes/web.php”, we didn’t call “App/Cars” like we called “App/User”),...
Laravel provide list of eloquent model events and each model event have it's own function. it's very helpful. i love laravel eloquent model events. creating: Call Before Create Record. created: Call After Created Record. updating: Call Before Update Record. ...
In this part of the series, you’ll learn how to limit the number of results in a Laravel Eloquent query with thelimit()method, and how to paginate results with thesimplePaginate()method. Limiting Query Results To get started, you’ll update your main application route (/) to li...
Laravel Mix is used for mixing different stylesheets into a single bundle and making it a single file. Larvel Mix is present by default in all Laravel applications. Laravel mix is generally used for compiling different CSS files into one file so that the application does not need to call two...
You can do the same with a for..in loop to iterate on an object:const fun = (prop) => { return new Promise(resolve => { setTimeout(() => resolve(`done ${prop}`), 1000); }) } const go = async () => { const obj = { a: 1, b: 2, c: 3 }; for (const prop in...
In your Laravel project, you can install the Telescope with the following commands,And we know that debugging can be very painful.