Page 1 of 1

error while including Imagine package in project

Posted: Mon Oct 05, 2015 3:00 pm
by gautamz07
I had a requirement in laravel, where i needed to some server side cropping using the the laravel package Imaginehttps://github.com/orchestral/imagine#installation, now i followed the installation instruction for this package for my application, I.E. :

I added the below line in my composer.json file:

Code: Select all

{
    "require": {
        "orchestra/imagine": "~3.0"
    }
}
My composer.json file looks like below now:

Code: Select all

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "require": {
        "laravel/framework": "4.2.*",
        "intervention/image": "dev-master",
        "orchestra/imagine": "~3.0"
    },
    "autoload": {
        "classmap": [
            "app/commands",
            "app/controllers",
            "app/models",
            "app/database/migrations",
            "app/database/seeds",
            "app/tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "stable"
}
Now when i run composer update from the terminal , i get the following messages:

http://i.imgur.com/lJAt6hy.jpg

and i have now followed THESE INSTRUCTIONShttps://github.com/orchestral/imagine#configuration too, of adding the alias etc to the config/app.php,

Now when i try to load my admin panel , i get the following error:

Code: Select all

Class 'Orchestra\Imagine\ImagineServiceProvider' not found
Why am i getting this error , can somebody explain ?

Re: error while including Imagine package in project

Posted: Mon Oct 05, 2015 3:21 pm
by Celauran
[text] "require": {
"laravel/framework": "4.2.*",
"intervention/image": "dev-master",
"orchestra/imagine": "~3.0"
},[/text]

https://github.com/orchestral/imagine#v ... patibility

Re: error while including Imagine package in project

Posted: Tue Oct 06, 2015 12:20 am
by gautamz07
"require": {
"laravel/framework": "4.2.*",
"intervention/image": "dev-master",
"orchestra/imagine": "~3.0"
},

Thats exactly what i have :D

Re: error while including Imagine package in project

Posted: Tue Oct 06, 2015 12:28 am
by gautamz07
Ohh ok , got it :D , thanks celauran :) updated composer.json to below now :

"require": {
"laravel/framework": "4.2.*",
"intervention/image": "dev-master",
"orchestra/imagine": "~2.2"
},