Distilleries / Xyz

X.y.z is a fresh instance of laravel 5.* with Expendable package configured. Check the require before install it.
6 stars 2 forks source link

Installation doesn't work #3

Open mesunil2010 opened 8 years ago

mesunil2010 commented 8 years ago

We tried to do install using composer but keep getting error. Even when we try to install package into laravel 5.2 fresh installation , it gives error. Can you please check if it works with latest laravel ? Thanks

mfrancois commented 8 years ago

Hi for the moment I don't work on the fresh install for laravel 5.2 but expendable work on It. I have to update this fresh install maybe during the week. If you need to install it quickly use directly expendable.

mesunil2010 commented 8 years ago

We tried to work on expendable too but it did not work too. There was error in routes in package. I will try it again and let you know . Thanks for the reply.

mesunil2010 commented 8 years ago

App\Providers\AppServiceProvider::class, This is how providers are listed in laravel but 'Distilleries\MailerSaver\MailerSaverServiceProvider', in your documentation. May be you need to update expendables too.

mfrancois commented 8 years ago

The both syntax work the second one it just more readable and testable.

What is your error?

mesunil2010 commented 8 years ago

ErrorException in LayoutManager.php line 56: Undefined property: stdClass::$version

mfrancois commented 8 years ago

That come from the configuration Export the configuration of expendable with

php artisan vendor:publish

After that configure the version package use to reload the header expire

config_file_assets'                    => base_path() . '/package.json',

You can use any json file with the field version on IT.

example :

{
  "author": "Maxime Francois",
  "name": "GiveMeetingTime",
  "version": "1.15.36"
}

cheers

mesunil2010 commented 8 years ago

Hi Maxi,

Now i have added the version as you said but still getting error . "FatalErrorException in FormField.php line 337: Call to a member function get() on null "

Screenshot

Thanks

mfrancois commented 8 years ago

Witch version of expendable do you use? Maybe you are in old one are you in the latest one 2.5.4?

Because this error come from the prefix of Route and currently you should have use \Route on the expendable route.

mesunil2010 commented 8 years ago

I am using composer to install it "require": { "php": ">=5.5.9", "laravel/framework": "5.2.", "distilleries/expendable": "2." } I believe it pulls latest version ?

mesunil2010 commented 8 years ago

Hi Maxi, Did you figured out the problem? Thanks

mfrancois commented 8 years ago

Hello, No I d'ont have this error on my version. One of thing you have to change your virtual host. The site root of your virtual host go a head on public folder.

Did you add expendable on boostrap/app.php for the exception.

$app->singleton(
    'Illuminate\Contracts\Debug\ExceptionHandler',
    'Distilleries\Expendable\Exceptions\Handler'
);

Did you extend \Distilleries\Expendable\Http\Kernel on app/Http/Kernel.php? Did you add providers in config/app.php :

        Wpb\String_Blade_Compiler\ViewServiceProvider::class,
        Distilleries\FormBuilder\FormBuilderServiceProvider::class,
        Distilleries\PermissionUtil\PermissionUtilServiceProvider::class,
        Distilleries\MailerSaver\MailerSaverServiceProvider::class,
        Maatwebsite\Excel\ExcelServiceProvider::class,
        Distilleries\Expendable\ExpendableServiceProvider::class,
        Distilleries\Expendable\ExpendableRouteServiceProvider::class,

And thoses Facades :

        'Mail'           => Distilleries\MailerSaver\Facades\Mail::class,
        'FormBuilder'    => Distilleries\FormBuilder\Facades\FormBuilder::class,
        'Form'           => Illuminate\Html\FormFacade::class,
        'HTML'           => Illuminate\Html\HtmlFacade::class,
        'Datatable'      => Distilleries\DatatableBuilder\Facades\DatatableBuilder::class,
        'PermissionUtil' => Distilleries\PermissionUtil\Facades\PermissionUtil::class,
        'Excel'          => Maatwebsite\Excel\Facades\Excel::class,

After that if you do a php artisan route:list you will be have some result like :

|        | GET|HEAD                       | component                                                            |              | Distilleries\Expendable\Http\Controllers\Admin\ComponentController@getIndex         | auth,permission |
|        | GET|HEAD                       | component/edit/{one?}/{two?}/{three?}/{four?}/{five?}                |              | Distilleries\Expendable\Http\Controllers\Admin\ComponentController@getEdit          | auth,permission |
|        | POST                           | component/edit/{one?}/{two?}/{three?}/{four?}/{five?}                |              | Distilleries\Expendable\Http\Controllers\Admin\ComponentController@postEdit         | auth,permission |
|        | GET|HEAD                       | component/index/{one?}/{two?}/{three?}/{four?}/{five?}               |              | Distilleries\Expendable\Http\Controllers\Admin\ComponentController@getIndex         | auth,permission |
|        | GET|HEAD|POST|PUT|PATCH|DELETE | component/{_missing}                                                 |              | Distilleries\Expendable\Http\Controllers\Admin\ComponentController@missingMethod    | auth,permission |

Regards,