Upgrading Laravel 4.2 to 5 Sentry not working - php

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.

Related

Is there a way to remove algolia/scout from laravel?

im am new to laravel and I recently installed Alogila on my Laravel application as I was working on a searching functionality using Laravel scout. The command I typed was composer require algolia/scout-extended
I am getting an error saying Impossible to connect, please check your Algolia Application Id.
Since I have decided to not have a searching functionality in my application, I would like to remove algolia from my app. I am unsure of how to do this, any help would be much appreciated.
You have two way to do that
first way
run the command
composer remove algolia/scout-extended
Second way
remove it from your composer.json file
then run the command
composer update

How to downgrade a Laravel 5.1 Project to 4.x?

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.

Use Propel instead of Eloquent in Laravel 5.2

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.

Laravel 5.1: Call to undefined function dropColumn() with phpArtisan

I'm trying to learn the Laravel 5.1 framework, which is amazing. I'm following the tutorials of Jeffrey Way on laracasts.com. Only now i have come across a problem that i can't seem to get rid of.
I was following the tutorial and i tried to do a migrate:refresh with the php artisan, which should work, but i get this error all the time:
Error
And for the love of god, i can't figure out what the problem is. This is how my migration looks like:
Migration
I can't seem to find the answer anywhere. Any help would be greatly appreciated!
I think that the error is from one of your other migration files.
The migrate:refresh command will first roll back ALL of your database
migrations, and then run the migrate command.
http://laravel.com/docs/5.1/migrations

Laravel 4 Artisan error when trying to install a bundle

I am simply trying to install a laravel bundle via the Artisan CLI using the latest Laravel 4 beta from github.
But when I try something like:
php artisan bundle:install bob
I'm confronted with
[InvalidArgumentException]
There are no commands defined in the "bundle" namespace.
I've had a look around online and can't seem to find a solution to this or even anyone else having similar problems for that matter.
Has anyone else experienced this error or any ideas on a solution?
If you're using Laravel 4 (which based on the tags for this question, you are) then bundles are no longer used.
Out with bundles, in with composer
Instead, Laravel 4 makes use of composer packages. It's kind of similar but at the same time very different in how it works. Here isn't the right place to explain all of composer, so check out the links below to find out more:
Getting started with Laravel 4
How to setup Laravel 4
Composer primer
Laravel 4 Generator
Now, since you were asking about bob, the closest equivalent for the bob bundle would probably be Jeffrey Ways generator package, which you can learn more about here: Laravel-4-Generators

Categories