未加星标

Packages that make developing Laravel apps easier

字体大小 | |
[开发(php) 所属分类 开发(php) | 发布者 店小二04 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

In this post I’d like to share some of the packages that make developing a Laravel app easier.

laravel-debugbar

This package really needs no introduction as it is one of the most popular packages around. It’s made by Barry Vd. Heuvel and it’s a real powerhouse. Once the package is installed it displays a debugbar in your browser that shows a lot of useful info such as the executed queries, which views are used, which controller built up the page, and much much more.


Packages that make developing Laravel apps easier

https://github.com/barryvdh/laravel-debugbar

laravel-ide-helper

This package, also made by Barry , can generate some files that help an IDE provide improved autocompletion. Using this packagephpStorm can autocomplete methods on facades, classes resolved out of the container and model properties.


Packages that make developing Laravel apps easier

https://github.com/barryvdh/laravel-ide-helper

laravel-tail

Those who are already using Laravel for quite some time know that Laravel 4 provided an artisan command to tail the Laravel default log. Unfortunately in Laravel 5 that command was axed. This package brings it back.

With the package installed you can just run php artisan tail to tail the log.


Packages that make developing Laravel apps easier

https://github.com/spatie/laravel-tail

laravel-mailable-test

Laravel 5.3 introduced mailables . A mailable is a class that takes care of everything regarding sending a mail.

One of the things that is not so easy to in a vanilla Laravel app is testing such a mail. In order to for example let your app send an order confirmation mail you have to go through the entire checkout process. The laravel-mailable-test package can make the mailable testing process a lot easier. It provides an artisan command that can send a mailable to a specific mail address.

The package will provide a value for any typehinted argument of the constructor of the mailable. If an argument is a int, string or bool the package will generated a value using Faker. Any argument that typehints an Eloquent model will receive the first record of that model.

If you want to learn more, read this introductory blog post about it.


Packages that make developing Laravel apps easier

https://github.com/spatie/laravel-mailable-test

laravel-mail-preview

Made by Mohamed Said , this package can help you test a flow where mail is involved. Instead of sending the actual mail that package will save the mail to the filesystem. In the browser it will display a little notice that a mail was sent. Clicking on the link in that notice will display the saved mail right in your browser.

Here’s a short movie clip that shows how it can be used to test a password reset.

https://github.com/themsaid/laravel-mail-preview

laravel-migrate-fresh

In my projects I have never run a down migration. So I don’t bother with coding up the down steps. And without those down steps running Laravel’s migrate:refresh will result in errors. If you think skipping writing down steps is lazy, read this comment Adam Wathan made on Reddit.

The laravel-migrate-fresh package provides an artisan command that can knock out all your tables without using down steps of a migration.


Packages that make developing Laravel apps easier

https://github.com/spatie/laravel-migrate-fresh

Do you know some other indispensable package that makes developing a Laravel app easier? Let me know in the comments below.


Packages that make developing Laravel apps easier

Freek Van der Herten

Freek Van der Herten is a partner and developer at Spatie , an Antwerp based company that specializes in creating web apps with Laravel. After hours he writes about modern PHP and Laravel on this blog. When not coding he’s probably rehearsing with his kraut rock band .

本文开发(php)相关术语:php代码审计工具 php开发工程师 移动开发者大会 移动互联网开发 web开发工程师 软件开发流程 软件开发工程师

主题: LaravelPHP
分页:12
转载请注明
本文标题:Packages that make developing Laravel apps easier
本站链接:http://www.codesec.net/view/533103.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 开发(php) | 评论(0) | 阅读(17)