sang-asia/backpack-website

A ready to develop Backpack for Laravel Website with FE & BE.

v1.0.3 2022-01-27 05:35 UTC

This package is auto-updated.

Last update: 2024-10-27 11:20:59 UTC


README

Install

  • composer create-project sang-asia/backpack-website your-project-name
  • Configure database connection.
  • php artisan migrate
  • php artisan backpack:user
  • php artisan storage:link

Configure

Configure Project

  • File config/backpack/base.php: project_name, project_logo, developer_name, developer_link.

Remove Laravel example page

  • Delete view resources/views/welcome.blade.php.
  • Remove route in routes/web.php.

Remove Backpack's error pages

  • Delete folder resources/views/vendor/errors.

Configure Laravel Idea plugin

Open setting: File > Settings > Languages & Frameworks > Laravel Idea > Module System:

  • Module system: Choose Directory modules as composer.json packages.
  • Root directory path: Enter packages.
  • Check both Lowercase translation namespaces and Allow app root module in code generation dialogs.

Frontend

  • Open Terminal/Command Prompt and go to directory packages/web_fe.
  • npm install.
  • Compile assets:
    • Develop: npm run dev or npm run watch.
    • Production: npm run prod.