First of all, the team, PHP developers about 20~30 people, the front end of about 10 people, a total of dozens of projects developed/maintained, of which about 70% are internal use of projects. The performance requirements for PHP are not very high for projects that provide external use, so there is no need to think too much about performance.
Recently in the framework of the selection, before the use of thinkphp, for several years, but with the business needs, TP does not meet the requirements
://getcomposer.org/installer | Php
or ' Php-r ' ReadFile (' Https://getcomposer.org/installer '); "| PHP '
Now hit composer in the command line (run cmd under win), if it is not a help page (similar to below), please bring your own ladder and try again.
______ / ____/___ ____ ___ ____ ____ ________ _____ / / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \ /___///___//_////////_///_/(__ ) __//\____/\____/_//_//_/. ___/\____/____/\___/_/ /_/composer Version 1.0-dev (8e96
optimization The optimize command merges commonly loaded classes into a single file,Reduce file loading to improve operational efficiency: PHP artisan optimize--force generates bootstrap/cache/compiled.php and Bootstrap/cache/services.json two files. You can add classes to be merged by modifying the config/compile.php file. In the production environment, the parameter--force does not need to be specified, and the file is generated automatically. To clear the class-map load optimization, run
/comments/edit.blade.php:
@extends (' app ') @section (' content ')
Background admin function Complete, view effect:
6. Big JobPage-dependent comment functions have been completed, and the embryonic form of the personal blogging system was born. At the end of this series of tutorials, lay out a big job: build the front and back of the Article, and add a one-to-many relationship between Article and Comment to add comment and comment management capabilities. In the process of doing
information, such as the providers array of config/app.php files.
4. Automatic load optimization
This command is not only for laravel programs, but for all programs built using composer. This command converts PSR-0 and PSR-4 into a class mapping table to increase the load speed of the class.
Composer Dumpautoload-o
Note: This operation has been done in the PHP artisan optimize--force command.
5. Use M
Let's talk about the optimization skills of the Laravel 5 Framework of the PHP program.
Laravel is a powerful framework with many components and huge Code. Its ease of use sacrifices performance. Even so, Laravel is still an excellent framework, however, in the formal environment, we must optimize and speed up website
composer programs that are used to build. This command PSR-0 PSR-4 converts and transforms a class mapping table to increase the load speed of a class.composer dumpautoload -o
Note: php artisan optimize --force This operation has already been done in the command.
5. Use Memcached to store sessionsEach Laravel request, will produce a session, modify the storage of the session can effectively i
Spit GrooveThe whole day, laravel download trouble can go to die. First to install composer, and composer is a common wall, and then install git, install git also to register git, and so on ....It's disgusting to finally give up this play. I'm a damn.
Finally here, find this:Laravel 5 of the entire framework source code download:Https://github.com/overtrue/latest-laravelAfter downloading, unzip the
This article mainly for you to share the introduction of 5 very useful laravel blade instructions, the text through the sample code introduced in very detailed, to everyone's study or work has a certain reference learning value, need friends to see it together
Brief introduction
Blade is a very simple and powerful template engine provided by Laravel, unlike othe
Today, I'm going to share how the dynamic tree structure is implemented through jquery in Laravel 5: There are times when we really need to create trees for the class and its subclasses for ease of use.
In this tutorial, I simply create a "categories" table in the Laravel application and manage the parent class and subclasses through a nested tree structure. I u
Laravel 5 Basic Tutorials | | 2. Routing: Link to Controller-table seriousness
Intuitively, routing is used to parse the part of the address bar after the domain name.
Example: Baidu.com/lala
Note the/lala after the domain name, this is a routing rule. Routing rules allow us to flexibly control the scope and depth of user access, and can even be used for rights management in
Laravel 5 Frame Learning form, laravel5 frame form
Let's first modify the route to add a post.
Copy the Code code as follows:Route::get (' articles/create ', ' articlescontroller@create ');
Then modify the controller
Copy the Code code as follows:Public Function Create () {Return view (' Articles.create ');}
We return to a view and create this view. We can of course use HTML to create a form, but we have a
Server uses cropping details to process pictures after sending a successful response to the client
If an error occurs throughout the process, a dialog box with error messages pops up
After the crop is successful, the final picture is displayed in the user's Croppic box.
The user can click the Close button and then re-operate the entire process
In this tutorial we use the intervention Image extension package for server-side picture processing.
Note: The complete code for this
1, installation
Htmlpurifier is a rich text HTML filter based on PHP that we can use to prevent XSS cross-site attacks, and for more information on Htmlpurifier, please refer to its official website: http://htmlpurifier.org/. Purifier is an expansion pack that integrates htmlpurifier in Laravel 5, and we can install this expansion pack through Composer:
Composer require Mews/purifier
After the installati
Installation Laraval can refer to http://laravelacademy.org/post/6665.htmlOwn this installation is to use composer to install drip, the premise needs your own computer installed composer, and add environment variables, so directly can use composer,by Composer Create-projectcomposer create-project --prefer-dist laravel/laravel blogSo the default installation of the latest drops, if you want to install larave
Laravel 5 framework learning form, laravel5 framework form
First, let's modify the route to add an article release.
Copy codeThe Code is as follows:Route: get ('articles/create', 'articlescontroller @ create ');
Then modify the Controller
Copy codeThe Code is as follows:Public function create (){Return view ('articles. create ');}
We return a view to create this view. Of course we can use HTML to create a f
Laravel 5 Implementing Template Theme Features
Many CMS have template theme function, we can change the theme through a configuration, this function in Laravel how to implement it? Today we are going to discuss this problem.
As we all know, the Laravel rendering template is implemented through View::make (), and yo
Service Container
Objective
In the previous section, we made a single entrance to some of the shared data, and the benefits were obvious, reducing unnecessary controller access. Let's take a look at service container in this section.
Description
Development environment: Windows 7
Laravel version: 5+
Ide:phpstorm
In the 25th quarter, we talked a lot, but we haven't covered the service contain
Laravel5 Basics (12)-authentication Laravel factory already has a user authentication system. let's take a look at routes. php. if it is deleted, add: Route: controllers ([ #39; auth #39; gt; #39; AuthAuthController #39 ;, #39; password #39; gt; #39 Laravel 5 Basics (12)-authentication
Laravel already has a us
Laravel 5 Basic Tutorials | | 3. Controller: Task Dispatcher-table seriousness
Tutorials Directory
1. Installation and deployment-table seriousness
2. Routing: Link to Controller-table seriousness
3. Controller: Task Dispatcher-table seriousness
The controller is a small matchmaker.
Sometimes we find that it's not long before the logic is written directly into the route.
R
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.