Laravel

Laravel is a nice modern PHP framework by Tayler Otwell, read more about it at http://laravel.com

How to fix the Laravel Gulp Error: Cannot find module ‘internal/fs’

Laravel Gulp Error: Cannot find module ‘internal/fs’ Get this error? vagrant@homestead:*****$ gulp module.js:472 throw err; ^ Error: Cannot find module ‘internal/fs’ at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at evalmachine.:18:20 at Object. (/usr/lib/node_modules/gulp/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:11:1) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) How to fix this error? […]

How to fix the Laravel Gulp Error: Cannot find module ‘internal/fs’ Read More »

Travis CI – Laravel Forge / webhook integration

While developing tests for my app, I wanted to have an integration with Laravel Forge in this order: Push to Github after commit Tests done by Travis CI Call the deployment trigger url of Laravel Forge / Envoyer if the test runs successfully. This URL looks like: https://forge.laravel.com/servers/111111/sites/2222222/deploy/http?token=TOKEN To do this, create a travis.yml file like:

Travis CI – Laravel Forge / webhook integration Read More »

Laravel Speed and Performance Optimization 101 – The Guideline

I am working with a pretty heavy Laravel site with many requests and lots of Eloquent/SQL calls. Even though the high-memory and high-cpu VPS, I felt there is room for performance improvement. That is why I would like to write out some improvements to speed up Laravel: 1. Use Database or Redis for cache and sessions

Laravel Speed and Performance Optimization 101 – The Guideline Read More »

Laravel 5.3 change login path and prevent registration

Prevent that /login is the default path for login Thanks to Stackoverflow. Go to your routes/web.php And change: Auth::routes(); Into: // Login Route::group([‘middleware’ => [‘web’]], function() { Route::get(‘login-new-address’, [‘as’ => ‘login’, ‘uses’ => ‘Auth\LoginController@showLoginForm’]); Route::post(‘login-new-address’, [‘as’ => ‘login.post’, ‘uses’ => ‘Auth\LoginController@login’]); Route::post(‘logout-new-address’, [‘as’ => ‘logout’, ‘uses’ => ‘Auth\LoginController@logout’]); }); // Registration Routes… Route::get(‘register’, [‘as’ =>

Laravel 5.3 change login path and prevent registration Read More »

Laravel Forge Ubuntu Update and Upgrade Manual with OpenSSL bugfixes

Be careful: Not all commands have been fully tested, you use these instructions with care and on your own risk. To repeat, as goes for all our articles, using our instructions is on your own risk! This article primarily focuses on Ubuntu 14.04 and 16.04 servers that are working with Laravel Forge, but it can

Laravel Forge Ubuntu Update and Upgrade Manual with OpenSSL bugfixes Read More »

Laravel 5 socialite with Facebook integration

Would you like to offer a Facebook login functionality next to a regular e-mail based login? This is a tutorial to achieve that with Laravel 5 and the Socialite plugin. This tutorial is based on Matt Stauffer’s tutorial. First of all pull in Laravel Socialite via composer: composer require laravel/socialite Create the users and password_remember

Laravel 5 socialite with Facebook integration Read More »

Backup Ubuntu site / Laravel Forge server with Tarsnap

Would you like to backup your Ubuntu server with Tarsnap and also backup your Mysql database? Then follow this steps: Install Tarsnap 1. Install dependencies sudo apt-get install build-essential ext2fs-dev zlib1g-dev libssl-dev 2. Install Tarsnap Download Tarsnap with this wget: wget –no-check-certificate https://www.tarsnap.com/download/tarsnap-autoconf-1.0.35.tgz Now we need to extract, configure, and compile Tarsnap. tar xfz tarsnap-autoconf-1.0.35.tgz

Backup Ubuntu site / Laravel Forge server with Tarsnap Read More »

Laravel 5: simple multi-tenant/multi-site model setup (many-to-many relation covered as well)

Laravel 5 is a brand new version of the popular framework. Unfortunately, there are no good multi-tenant setups for Laravel 5 yet. That’s why I’d decided to create my own simple version as well, based on Eloquent Global Scopes. In my case I wanted a sites table, with categories that have a many to many

Laravel 5: simple multi-tenant/multi-site model setup (many-to-many relation covered as well) Read More »

Scroll to Top