PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, January 29, 2022

[FIXED] bllim/laravel4 datatables package - errors after installation

 January 29, 2022     composer-php, datatables, laravel, laravel-4     No comments   

Issue

Installed the bllim/laravel4-datatables-package yesterday and having no end of problems. I wonder if anyone has experienced the same?

I added to require-dev in composer.json,

"bllim/datatables": "dev-master",

In git bash I ran the following, all successful:

$ composer update
$ php artisan config:publish bllim/datatables

It returned - Configuration published for package : bllim/datables

The fun bit came when I added the following to app/config/app.php

'providers' => array(
    ...
    'Bllim\Datatables\DatatablesServiceProvider',
),



'aliases' => array(
    ...
    'Datatables'      => 'Bllim\Datatables\Facade\Datatables',
),

This subsequently breaks my site completely returning the error:

Symfony\Component\Debug\Exception\FatalErrorException …/­vendor/­laravel/­framework/­src/­Illuminate/­Translation/­Translator.php8

enter image description here


Solution

You should run the following command after adding a package:

composer dump

If that doesn't help, try changing the "minimum-stability" from "dev" to "stable" in your composer.json file and run composer update again.



Answered By - lowerends
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing