Label:[Laravel] Laravel the database configuration Locate the. env file under the program directory structure To configure basic database connection information db_host=127.0.0.1 db_port=3306 Db_database=blog Db_username=root Db_password=root You need to restart the service when you finish modifying the. env file [Laravel]
: This article mainly introduces Laravel, a top-level PHP Framework. (1) Laravel, a master-level framework, helps code become an art. if you are interested in PHP tutorials, refer to it. Common commands for laravel artisan:
Create a controller:
php artisan make:controller Front/Users/UsersController
Automatically created./App/Http/Controllers/Front/Users/UsersCo
Laravel framework route configuration summary and setup skills. The Laravel framework provides a summary of routing configuration and configuration techniques. The vast majority of the routes of your application will be defined in the approutes. php file. The simplest routing configuration and setup skills of Laravel framework in
[Mr. Mak] implement mailbox verification in the LARAVEL framework---send mail, laravel---
After a period of use, found in the project many places need to use user authentication, SMS verification and mailbox verification as the mainstream trend, wheat summed up if the Laravel framework to implement the sending mail function, will be more on how to implement SMS
Send mail instance (mailbox verification) in Laravel framework, laravel send mail
After a period of use, found in many areas of the project need to use user authentication, SMS verification and mailbox verification as the mainstream trend, this article small to summarize how to achieve in the Laravel framework to send the mail function, will be more on how to ac
Laravel 5 Framework Learning Form validation, Laravel framework
In the creation of an article, if you do not enter a direct submission, OK, you get an empty article, without any error, this is not right. Run PHP artisan at the command line to see an option make:request, create a new form request class. Executing at the command line
Copy the Code code as follows:PHP Artisan make:request createarticlerequest
Laravel dependency injection through source code parsing, and laravel source code parsing
Preface
As we all know, php frameworks are countless. In recent years, a framework famous for its elegance has gradually been known and used by phper in China. However, larave has an obvious drawback, he has little content in the document.
This article will give you a detailed introduction to
1. Introduction
Laravelelixir provides a clean and smooth set of APIs for defining basic gulp tasks for Laravel applications. Elixir supports some common CSS and JavaScript preprocessor, and even testing tools. Using the method chain, Elixir allows you to smoothly define the resource pipeline. For example:
Elixir (function (Mix) { mix.sass (' app.scss ') . Coffee (' App.coffee ');});
If you've ever wondered how to use gulp and compile fron
This series of articles is a laracasts.com in the introductory series of videos, I made some changes, can refer to this series of articles to learn Laravel 5. The original video author is Jeffrey, thanks here. I'm using a Mac system, but it's recommended that you use a virtual machine to install Linux (Server Edition) and then develop it in a shared folder, whether it's a Mac or a Windows user. All command-line commands should be executed in the virtu
Laravel 3: laravel queue usage tutorial
Overview
Concept of queue: a solution that is unknown. (PS: laravel version: 5.1)This situation is often encountered during app server development:
A large task can be divided into 1, 2, and 3 small tasks. 2 of them depends on 1 and 4 of them. Therefore, 1, 2, and 4 can be considered as a transaction and must be executed
Laravel permission Control Organization-middleware and laravel MiddlewareIntroduction
HTTP middleware provides a convenient mechanism to filter HTTP requests entering the application. For example, Laravel contains a middleware by default to verify user authentication. if the user has not been authenticated, middleware directs the user to the logon page. However,
Installation in laravel environment and laravel EnvironmentInstallation in laravel Environment
Composer I think is a special thing in php. For example, we compile a php extension module. so file, and then load it into php, while laravel uses something called Composer to solve the dependency problem.1. Install Composer
Tags: no mina auxiliary ice fun record here str share?Brief introductionIn other frameworks, paging is a very painful thing, and Laravel makes it simple and easy to get started with. Laravel's paging is integrated with the Query builder and eloquent ORM, and provides a convenient, easy-to-use, database-based result set of paging in the Open box. The HTML-compatible bootstrap CSS framework generated by the page splitter.Basic use of Query Builder-based
OverviewQueue concept: Slightly, do not know the self-resolution. (PS: here Laravel version:5.1)This is often the case with App server development:
A large task can be divided into 1,2,3,4 small tasks, where 2 of the completion depends on the completion of 1,4 2. Then 1, 2, 4 can be understood as a transaction that must be executed sequentially, otherwise the task cannot be completed. But task 3, with 1, 2, 4 has no relationship, can be compl
Let's build the first model.
php artisan make:model Article#输出Model created successfully.Created Migration: 2015_03_28_062517_create_articles_table
Look at the resulting fileapp/Article.php
没什么特别的,除了继承自 Model 以外,但是具有强大的功能,这些都封装在laravel的Model中。模型自动具有了 save() update() findXXX() 等强大的功能。
tinker 是 laravel提供的命令行工具,可以和项目进行交互。
PHP Artisan tinker# The following is the interactive input in Tinke
Laravel 5 Implementing template Theme features, laravel templates
As we all know, the Laravel rendering template is implemented through View::make (), and you need to explicitly specify the template file path:
Copy the Code code as follows:Function index (){Return View::make (' Index.index ');}
In this case, we can implement the template theme function, we just
PHP Framework laravel Two tips, laravel tips two
Using Laravel as a framework for PHP development has been a long time, but there are some official documents that are not covered and are forgotten every once in a while. Recently did a little bit of tidying up, by the way note down memo.
1. Route::controller Route naming:
Using Route::controller can reduce a lot
Php laravel framework quick integration login, laravel framework
The final solution is: https://github.com/liuyunzhuge/php_weixin_provider. For more information, see the following.
This article is intended for users of the php laravel framework and introduces a simple integrated login Method Based on this framework. The usage is as follows:
1. Install php_weixin_
Laravel 5 framework performance optimization skills, laravel Performance Optimization
Performance has always been a criticism of the Laravel framework, so tuning Laravel programs is a required skill.
Next, I will share some development best practices and optimization skills. If you have other suggestions, please leave
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.