Laravel

How To Order Query Results in Laravel Eloquent — step-by-step Programming tutorial on Progressive Robot

How To Order Query Results in Laravel Eloquent

In a previous part of this series, you learned how to obtain database records using the all() method from within an Eloquent model, sorting the resulting collection with the sortDesc() method. In this guide, you’ll learn how to use the orderBy() method to sort results in the database query itself, which offers more flexibility and performance to order query results at the database level.

Read more
How To Use Migrations to Create and Manage Database Tables in Laravel — step-by-step Programming tutorial on Progressive Robot

How To Use Migrations to Create and Manage Database Tables in Laravel

In this guide, you’ll create a database migration to set up the table where you’ll save the application links. In order to do that, you’ll use the [Artisan](https://laravel.com/docs/8.x/artisan) command-line tool that comes with Laravel by default. At the end, you will be able to destroy and recreate your database tables as many times as you want, using only `artisan` commands.

Read more
How To Insert New Database Records in Laravel Eloquent — step-by-step Programming tutorial on Progressive Robot

How To Insert New Database Records in Laravel Eloquent

In the second part of our Practical Introduction to Laravel Eloquent Series, you’ll learn how to insert records in the database using Eloquent models. One of the biggest advantages of using an ORM system is the ability to manipulate rows in a database table as objects within your codebase. With Eloquent, as with other ORMs, the object itself provides methods that can be used to persist it to the database, saving you the work of writing SQL statements.

Read more
What is Laravel? — step-by-step Programming tutorial on Progressive Robot

What is Laravel?

Laravel is a free and open-source PHP framework that provides a set of tools and resources to build modern PHP applications. With a complete ecosystem leveraging its built-in features, and a variety of compatible packages and extensions, Laravel has seen its popularity grow rapidly in the past few years, with many developers adopting it as their framework of choice for a streamlined development process.

Read more
How To Create Artisan Commands To Manage Database Records in Laravel — step-by-step Programming tutorial on Progressive Robot

How To Create Artisan Commands To Manage Database Records in Laravel

If you followed along with this series so far, your database tables should be all set by now. However, you still need to implement a way to let users insert new entries in the links table. In this guide, we’ll create Artisan commands to manage database records on your application. At the end, you’ll be able to create, list, and delete links in the database using command-line Artisan commands.

Read more
How to Install and Configure Laravel 8 with Nginx (LEMP) on Ubuntu 18.04 — step-by-step Linux tutorial on Progressive Robot

How to Install and Configure Laravel 8 with Nginx (LEMP) on Ubuntu 18.04

Laravel is an open source PHP framework that provides a set of tools and resources to build modern PHP applications. In this guide, you’ll install and configure a new Laravel application on an Ubuntu 18.04 server, using Composer to download and manage the framework dependencies. When you’re finished, you’ll have a functional Laravel demo application pulling content from a MySQL database.

Read more
CHAT