- https://speakerdeck.com/willroth/50-laravel-tricks-in-50-minutes
- https://www.reddit.com/r/laravel/comments/3to60i/50_laravel_tricks/
- 1. Automatic Model Validation
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: Sergey.Fayngold | |
| * Date: 16.11.16 | |
| * Time: 18:27 | |
| */ | |
| namespace App\Http\Controllers; |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Routing\Route; | |
| use Illuminate\Support\ServiceProvider; | |
| use App\Http\Middleware\CaptureRequestExtension; | |
| class AppServiceProvider extends ServiceProvider |
| version: '3' | |
| services: | |
| fpm: | |
| image: sbvr/laravel-fpm:2.1.2 | |
| volumes: | |
| - app:/var/www | |
| networks: | |
| - appnet | |
| worker: |
| version: '3' | |
| services: | |
| fpm: | |
| volumes: | |
| - ./:/var/www | |
| environment: | |
| - OPCACHE_ENABLED=0 | |
| worker: | |
| volumes: |
youtube-dl is a handy little command-line utility that, with the right command, automagically downloads videos from Youtube as well as other platforms such as Vimeo, Lynda.com, BBC, CNN etc..(Full list of supported websites)
Kindly proceed to youtube-dl's Github repo for detailed installation instructions for your respective OS
In case of an error, make sure you have Python 2.6, 2.7 or 3.2+ installed as youtube-dl needs it to run.