How To Set Up Laravel, Nginx, and MySQL with Docker Compose (English)
Learn how to run Laravel with Nginx and MySQL using Docker Compose. Step-by-step setup for local development with containers.
Learn how to run Laravel with Nginx and MySQL using Docker Compose. Step-by-step setup for local development with containers.
Here’s how to install Laravel with Nginx on an Ubuntu 12.04 LTS VPS.
In this guide, you will create a Laravel PHP application, build your app into a Docker image, and deploy that image to a Kubernetes cluster using the LAMP Helm chart. Next, you’ll set up an Ingress controller to add SSL and a custom domain name to your app. When completed, you will have a working Laravel application connected to a MySQL database that is running on a Kubernetes cluster.
Laravel’s Seeders are special classes that live in the `database/seeders` directory in a Laravel project that allow you to programmatically insert a collection of default or sample records in the database. In this guide, learn how to use seeders to populate the database with sample data, using Eloquent models.
When working with database query results, it is often useful to obtain only the total number of rows in a result set, instead of pulling the full dataset content with a regular query. Eloquent offers a few different aggregate methods that return a scalar value instead of an Eloquent object, such as count(), max(), and sum(). In this part of the series, you’ll update the main application view to show the total number of links in each list, using the count() method.
Migrations and Seeders are powerful database utilities provided by the Laravel PHP framework to allow developers to quickly bootstrap, destroy and recreate an application’s database.
In this tutorial, we will cover setting up SSH keys to support code deployment/publishing tools, configuring the system firewall, provisioning and configuring the database (including the password), and setting up task schedulers (crons) and queue daemons. The goal at the end of this tutorial is for you to have a fully working PHP application server with the aforementioned advanced configuration.
Laravel is an easy to use, modern framework for the PHP programming language. In this guide, we will demonstrate how to install Laravel with an Nginx web server on an Ubuntu 14.04 server instance.
CakePHP is an open-source PHP web framework. In this tutorial, you will deploy an example web application to production with a LAMP stack on Ubuntu 18.04.
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.