Laravel 5

Search with Typesense for Laravel Scout

Using Typesense as your search provider for Laravel Scout and Instantsearch.

Typesense is a great open-source alternative for Algolia. Given that Algolia has a pretty expensive pricing package, it could be worth having a look to Typesense. On top of that, it has already some integrations with famous packages like Instantsearch.js and Laravel Scout. It started recently, so it’s documentation still lacks some examples. That is […]

Using Typesense as your search provider for Laravel Scout and Instantsearch. Read More »

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 Eloquent Triple Pivot Relations

Solving the HasManyTriple problem Sometimes you find yourself in the situation where you have a table like shop_country_category, which has the following structure: countries – id – name shop – id – name products – id – name shop_country_product – id – country_id – shop_id – product_id In this case a shop has specific products

Laravel Eloquent Triple Pivot Relations 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.1 logout custom message and redirect to previous page

When you’re logging out in Laravel 5 and 5.1 the AuthenticatesUsers is called and the getLogout method. Since, it’s in the Illuminate directory it’s not nice to write in this file directly. It’s better to rewrite the getLogout method from an Auth\AuthController. Normally AuthCntroller, it might use this traits: use AuthenticatesAndRegistersUsers, ThrottlesLogins; Now we’ll rename

Laravel 5.1 logout custom message and redirect to previous page 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 »

Scroll to Top