Create a single-page Vue application from Laravel
In this tutorial, we continue to create a Vue Single Page Application (SPA) in Laravel by learning how to load asynchronous data from the Laravel API in the Vue component.We'll also look at error handling, such as how the interface responds when the API returns an error.
If you haven't studied Part One , we build a Vue Single Page Application ( ...
Added by alsinha on Tue, 24 Sep 2019 05:43:15 +0300
Laravel Data Filling (Seed) 6 Tips Sharing
The article was forwarded from the professional Laravel developer community with the original link: https://learnku.com/laravel/t...
Key point 1. Use updateOrCreate() to avoid duplicate filling
Imagine this fill code, and imagine that for some reason this fill will be started multiple times:
public function run()
{
$items = [
['id' ...
Added by n5tkn on Mon, 23 Sep 2019 05:29:08 +0300
Testing Laravel middleware using HTTP tests
The article was forwarded from the professional Laravel developer community with the original link: https://learnku.com/laravel/t...
In this article, I'll show you an example of testing middleware using HTTP.HTTP-level testing is more adaptable and readable.
Full Stack Broadcast, recently co-filmed with Adam Wathan and Taylor Otwell http://ww ...
Added by Horatiu on Wed, 18 Sep 2019 05:33:35 +0300
Share 10 useful Lavel 5.8 set assistive methods
The article was forwarded from the professional Laravel developer community with the original link: https://learnku.com/laravel/t...
In Laravel, there is a very useful class called a collection of operand arrays.Believe that every Laravel developer has used collections more or less, especially when working with Eloquent.In this article, I wil ...
Added by NixNod on Mon, 16 Sep 2019 05:14:25 +0300
Business Logic Processing of Laravel Point Comment and Comment Module
Requirement: A user gives or cancels a comment on an article and then returns to the list page of the article to show the number of comments and the number of comments.
In laravel, we can use the idea of model association to develop this functio ...
Added by Madzz on Fri, 30 Aug 2019 12:59:30 +0300
Laravel 5.8 Concise Tutorial
In this beginner-oriented tutorial, we will learn how to use the latest PHP development framework, Laravel 5.8, to create a Web application based on MySQL database, to achieve the function of adding, deleting and modifying contacts.
If you want to quickly grasp the development of block chain applications, we recommend Hui Zhi's. A series of tut ...
Added by ace21 on Sat, 24 Aug 2019 14:35:55 +0300
Laravel Best Practices
Principle of Single Responsibility
A class and a method should have only one responsibility.
For example:
public function getFullNameAttribute()
{
if (auth()->user() && auth()->user()->hasRole('client') && auth()->user()->isVerified()) {
return 'Mr. ' . $this->first_name . ' ' . $this->middle_nam ...
Added by jonemo on Fri, 23 Aug 2019 09:20:43 +0300
laravel 163 Sends Mail
Configuration of 163 Mailbox Accounts
First of all, 163 mailboxes are needed. Here, 163 mailboxes must be set up to open SMTP services and set passwords.
Modify the. env file in the laravel root directory to set up the contents of the mailbox:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.163.com
MAIL_PORT=465
MAIL_USERNAME=YOUR-EMAIL-NAME
MAIL_PASSWORD=Y ...
Added by fisicx on Wed, 31 Jul 2019 11:23:06 +0300
Large Data Migration
Preface:
The company is facing restructuring with around 4 million data.The database design tables of the old and new systems have changed, and the relationships between tables have changed. Some even require a third-party interface to obtain data.
Dependency:
php7
laravel 5.5+
redis
Migrati ...
Added by laflair13 on Sat, 20 Jul 2019 05:11:07 +0300
PHP Process for Processing WEB Requests
PHP, as the best programming voice in the world, is widely used in Web development.Because its grammar and C are similar, and it has a very smooth learning curve, more and more people are using PHP for the rapid development of Web products.Many development frameworks have emerged in the PHP world, such as Laravel, ThinkPHP, etc. However, no mat ...
Added by squimmy on Mon, 15 Jul 2019 19:40:35 +0300