Laravel 5.3

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 »

en_USEnglish
Scroll to Top