Laravel guide Top level folder App - Contains the controllers models views and assets for your application This is where the majority of the code for your application will live You will be spending most of your time in this folder Public - The only folder

Top level folder App - Contains the controllers models views and assets for your application This is where the majority of the code for your application will live You will be spending most of your time in this folder Public - The only folder seen to the world as-is This is the directory that you have to point your web server to It contains the bootstrap ?le index Php which jump- starts the Laravel framework core The public directory can also be used to hold any publicly accessible static assets such as CSS JavaScript ?les images and other ?les Vendor - A place for all third-party code In a typical Laravel application this includes the Laravel source code and its dependencies and plugins containing additional prepackaged functionality app con ?g Con ?gure your application ? s runtime rules database session and more Contains a number of con ?g ?les for changing various aspects of the framework Most of the con ?g ?les return associative PHP arrays of options app con ?g app php Con ?guration for various application level settings i e timezone locale debug mode and unique encryption key app con ?g auth php Con ?guration that controls how user authentication will be performed in the application i e authentication driver app con ?g cache php If the application utilizes caching to speed up response time this is where you con ?gure the feature app con ?g database php Contains relevant con ?guration information for the database i e default database engine and connection information app con ?g session php CCon ?guration that controls how user sessions are managed by Laravel i e session driver session lifetime app con ?g view php Misc con ?guration settings for templating systems app controllers Contains the controller classes that are used to provide basic logic interact with data models and load view ?les for your application app database migrations The migrations folder contains PHP classes which allow Laravel to update the Schema of your current database while keeping all versions of the database in sync Migration ?les are generated using the Artisan tool app database seeds The seeds folder contains PHP ?les which allow Artisan to populate database tables with reference data app models Models are classes that represent the information data of the application and the rules to manipulate that data In most cases each table in your database will correspond to one model in your application The bulk of your application ? s business logic will be concentrated in the models app start Contains custom settings related to the artisan tool as well as global and local context app storage The storage directory is used as temporary ?le store for various Laravel services such as sessions cache compiled view templates This directory must be writable by the web server This directory is maintained by Laravel and you need not tinker with it C

  • 45
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise
Partager
  • Détails
  • Publié le Mai 19, 2021
  • Catégorie Law / Droit
  • Langue French
  • Taille du fichier 21.5kB