I have started project in Laravel 5.2 based on Laravel Framework 5 Bootstrap 3 Starter Site. I have successful upgraded to latest 5.2 laravel version.
Right now I want to use Propel 2 instead of Eloquent.
Is there much work with replacing it? How about Auth model? Any traps or dead ends?
I appreciate any suggestions.
Related
I am in the process of learning Laravel, currently, I have a Template/Framework installed on the server and it uses the Illuminate framework? I have read that Laravel has depreciated that package with Laravel.
What is the process of updating an existing template from Illuminate to the more current Collective HTML?
When I try it breaks the pages existing. I have tried the following but it does not seem to help.
Switching from Illuminate\Html to Collective\Html, Class 'Illuminate\Html\HtmlServiceProvider' not found
I solved this by removing a duplicate Illuminate statement in the config/app.php as hinted at by Rob Fonseca.
How to create laravel 5 authentication. I am upgrading the app from laravel 4 to laravel 5 .
In laravel 4, I have used logincontroller to authenticate the user using api.
How can I do it in laravel 5.
Laravel 5 comes with Auth built-in. Run the following artisan command to get Laravel to setup the required controllers and views to handle auth:
php artisan make:auth
The project structure have changed a lot from Laravel 4 to Laravel 5. The controller folder which was initially in app/ director now moved to app/http/Controller directory and so on. So all your old code structure need to be refactored in order to work with Laravel 5.
You can cross-check if you didn't miss anything while upgrading by this
http://www.sitepoint.com/laravel-4-laravel-5-simple-upgrade-guide/ .
How does one downgrade a Laravel 5 project to Laravel 4? If it's not that hard, it might work better for my team. Any changes in Eloquent, Controllers, views, and user logins would be the need-to-know. The primary reason we are looking to downgrade is host PHP support. 5.3/5.4 are what we'd need, so whichever version of 4 we use would need to go that far back - I guess I'm also looking for advice on which version of 4 would be good.
I'm trying to upgrade from 4.2 to 5 (and then actually upgraded to 5.1) but I'm having major problems with sentry
I followed instructions to add sentry to L5 here:
How can I use sentry with laravel 5?
With no luck.
Where I'm basically stuck is I got this on my controller:
$user = User::find(Sentry::getUser()->id);
When I try to view the page I get:
Trying to get property of non-object
So it seems it's simply not working.
I've tried multiple ways to get it to work, another one being:
https://cartalyst.com/manual/sentry/2.1#migrations
migration:
php artisan migrate --package=cartalyst/sentry
doesn't work with it though, as I understand this was removed. I really don't know could that help me with any way? Not very knowledgeable with this :)
Original app is not coded by me so I have not integrated the sentry in first place so I might be missing something obvious.
I have been trying to create multiple auth login in laravel 5.0. Previously when I have been using laravel 4.2 I used https://github.com/ollieread/multiauth for multiple login. It worked great!. I tried integrating it in laravel 5.0 but I could not do it. Can anyone help me how do it? My requirement is, I need separate login sessions for user and admin.
I achieved multiauth in laravel 5 by changing few things in ollieread multiauth. You could find my package here https://packagist.org/packages/sarav/laravel-multiauth