Friday, 7 August 2015

File/Folder under /app directory -


  • /app/config/    -    It is used to configure our application’s runtime rules, database, session and more. It contains a number of config files for changing various aspects of the framework. Most of the config files return associative PHP arrays of options.

  • /app/config/app.php    -   It is used to configure for various application level settings, i.e. timezone, locale, debug mode and unique encryption key.

  • /app/config/auth.php     -  It is used to configure that controls how user authentication will be performed in the application, i.e. authentication driver.

  • /app/config/cache.php    -  If the application utilizes caching to speed up response time, this is where we need to  configure the feature.

  • /app/config/database.php   -  It contains relevant configuration information for the database, i.e. default database engine and connection information.

  • /app/config/mail.php   -   It is used to configure for email sender engine, i.e. SMTP server.

  • /app/config/session.php  -  It is used to configure that controls how user sessions are managed by Laravel, i.e. session driver, session lifetime.

  • /app/config/view.php     -  Miscellaneous configuration settings for templating systems.

  • /app/controllers    -      It contains the controller classes that are used to provide basic logic, interact with data models, and load view files for our application.

  • /app/database/migrations/ - The migrations folder contains PHP classes which allow Laravel to update the Schema of our current database. Migration files are generated by  using the Artisan tool.

  • /app/database/seeds/ -  The seeds folder contains PHP files which allow Artisan to populate database tables.

  • /app/lang/   -   By default, the directory contains language lines for pagination and form validation for the English language.

  • /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 our database will correspond to one model in the application.

  • /app/views/  -  The views directory contains our HTML template files used by controllers or routes.

  • /app/routes.php - This is our application’s routing file which holds routing rules that tells Laravel how to connect incoming requests to route handler closure functions, controllers and actions.

No comments:

Post a Comment