![]() The rules for naming classes, tables and their fields are used in order to unify ways of connecting objects and their corresponding tables and rows in the DB. Laravel includes an object-relational mapping (ORM) system, it is called Eloquent and is an implementation of the Active Record design pattern (AR). In our example, this fragment looks like this: DB_CONNECTION=mysql If you are using a database connection, go to the file explorer in the left pane of the IDE and open the ".env" file in the editor, this file stores the environment variables.įind the line "DB_CONNECTION=mysql" and enter the parameters for connecting to MySQL. We can study the structure of the new project on the "Project" tab, and also edit the main settings of our WEB-application. When the wizard has finished its work, we will check the correctness of the installation - open the address " in your browser, it is in this folder the public files are stored.Īs you can see, the Laravel logo appeared, there are no error messages, which means everything is well. ![]() Such tools will help in the work on large-scale projects, if you are just starting to learn the framework, you can skip this step for now.Ĭlick "Finish" and wait a little while CodeLobster downloads the current version of the framework and unpacks it into the designated directory. ![]() Socialite - it allows OAuth authentication, so you can use the login with Google, Facebook, Twitter, LinkedIn, GitHub, GitLab and Bitbucket.Scout - it implements the synchronization of your search index with the records in the model for working with the database and provides the ability to perform full-text search.Passport - it provides advanced features for user authentication using the API, fully implements the OAuth2 authorization system.Horizon - it provides a control panel and an API for accessing the Redis queue service, this ensures faster operation of WEB applications.Envoy - a package for organizing the execution of various tasks on a remote server, this may be the execution of PHP code or the launch of macros with several sequential commands.Cashier - it provides an interface for working with Stripe and Braintree services for organizing an online payment system on the site.If MySQL is running on the local computer, then nothing needs to be changed at this stage.Īll data entered by us will be automatically saved in the "config/database.php" file, and later it can be changed manually simply by opening this file in the editor.Īt the next dialog, we have got an ability to choose additional official packages for the installation: In the next dialog box, enter the server name and port. To connect the system to an existing database, select the "Use Database" checkbox and enter DB name, username and password. We have to complete a few steps and enter the elementary settings. Specify the project name, which we will place in the "htdocs" folder in the directory with the installed XAMPP.Įnable the option "Create project in a new folder" and click "OK" to start the wizard to install the framework. In the dialog box that appears, select the type of the created project "Create Empty Laravel Project". Go to the main menu "Project"->"Create Project". Now everything is ready, let's run MySQL and Apache servers and start the main work. Specify the path to the executable file "php.exe", in our system, for example, it looks like this - "D:/xampp-7.2.12/php/php.exe".Ĭheck "php.ini" file and make sure you have enabled all the necessary PHP-extensions such as php_bz2, php_curl, php_fileinfo, php_gd2, php_gettext, php_mbstring, php_exif, php_mysqli, php_pdo_mysql, php_pdo_sqlite, php_openssl and php_ftp. Launch CodeLobster and go to the main menu "Tools"->"Preferences"->"PHP". This article uses XAMPP 7.2.12, and we recommend that you install it too. ![]() There is no need to use the command line or download and run VirtualBox and Homestead virtual machine, which is larger than 2 GB.įor the work we need our IDE and the latest version of XAMPP, which in all respects is suitable for the correct operation of the newest version of the framework. Professional programmers use it widely in their projects, so beginners also need to learn Laravel as soon as possible.Ĭodelobster helps you to make a local Laravel installation quickly and effortlessly. It has a huge team and an excellent knowledge base - many articles, video tutorials and detailed documentation. Laravel is probably one of the most promoted PHP frameworks at the moment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |