Install an existing Laravel project

  • Update .env file → database

    • $ db name
    • $ db password 

Project error →

[ SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) ]
( if project create on another root,password phpmyadmin environment so we also have to use root,password for our phpmyadmin )

db error→

mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO)

After charge → XAMPP\phpMyAdmin\config.inc.php → /* Authentication type and info */
Charge default → ‘ user ‘ ,’ password ‘


  • Install the dependencies with Composer.
    • # cd in your project directory
      • $ composer update
            or

    • $ composer install
    • $ composer dumpautoload -o

  • Generate the key for your environment file, it will define the value for 'APP_KEY='

    • $ php artisan key:generate

  • Finish by clearing the config and generate the cache.

    • $ php artisan config:clear
    • $ php artisan config:cache

    • Time to check your site, depending on your environment, for development, the easiest way is to use Artisan.

      • $ php artisan serve


    [project error]
    [Symfony\Component\Debug\Exception\FatalThrowableError]
    Class 'Khill\Lavacharts\Laravel\LavachartsServiceProvider' not found

      • Change → ( Comment ) → [config/app.php]
    // Khill\Lavacharts\Laravel\LavachartsServiceProvider::class,
    // Khill\Lavacharts\Laravel\LavachartsFacade::class,

    ( Remove ) → ,"khill/lavacharts" : "3.0.*" → [composer.json]


    [project error]
    count(): Parameter must be an array or an object that implements Countable


    [database error]
    Warning in ./libraries/sql.lib.php#613
    count(): Parameter must be an array or an object that implements Countable
    • [ Php7.2 error ] → Downgrade to php7.1
          Or
    • Without artisan server
      • Locate the Project → XAMPP → htdoc Folder 
      • Run → localhost/Project_Name/public/


    For More https://colorfield.be/blog/install-existing-laravel-project

    Comments