Description I have a Laravel site is in English. I want to make it compatible with Dutch also. I start my homepage small, it only contain 3 sentences. which will render this Attempt I’ve installed this Laravel package and did all the installation steps from that repo. My routes, service provider, alias,…
Tag: laravel
Laravel 502 Bad Gateway Error
I use Laravel 5.3 with the latest Homestead Setup. When I make a POST Request to my API, I get this error according to the log file: 2016/10/29 12:44:34 [error] 776#0: *28 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.10.1, server: loc.medifaktor, r…
Why css and bootstrap is not loading in Laravel 5.3?
This is my route file… Route::group([‘middleware’ => [‘auth’]], function(){ Route::get(‘/profile/{username}’, ‘ProfileControllers@getProfile’); }); The “ProfileControllers” is this… namespace AppHttpControllers; use DB; use AppUser; us…
Laravel can only login in Incognito tab
I have a strange issue with my Laravel project. Can’t find out, when it first strated – I can only login/logout opening the app in incognito tab. And in normal tab it won’t log me out, when I am …
Laravel application URL with directory and route group
The laravel application url will be something like app.laravel.com{clientName}. All the routes will be following the client_name, for example app.laravel.com{clientName}home, app.laravel.com{…
laravel’s Session flush and forget methods not working as expected
I tried to delete a value from my session using : Session::forget(‘value’) but it didn’t delete! However, when i tried using save method like so : Session::forget(‘value’) Session::save() it …
Class AppHttpControllersAuthRequest does not exist. Laravel 5.3
I am using Laravel 5.3 My ForgotPasswordController looks like that: ResetPasswordController code : My Admin Route : BaseController Code : I can send the link to my email, but once I click the link/button. It throws an error like above. Any idea ? Answer You are not using the required namespace, try to use the…
Laravel5: TokenMismatchException in compiled.php line 3123:
THE SITUATION: Sorry in advance if it has already been asked. But no matter what I can never make it works. I am using Laravel 5 as API. I have a simple function to edit a task. I am testing it through my web app or through Postman. I am always getting this error: THE CODE: The function: The route:
validating a numeric input’s length in laravel 5
foo.blade.php FooController.php the national-id field should contain 10 digits and I actually expected the code above to validate this , but instead It will check If the national-id exactly equals to 10 or not … how can I validate the length of a numeric field? Answer In fact you don’t need to use…
Laravel – Eloquent – Dynamically defined relationship
Is it possible to set a model’s relationship dynamically? For example, I have model Page, and I want to add relationship banners() to it without actually changing its file? So does something like this exist: Or something similar? As they are fetched using the magic methods anyway, perhaps I can add the …