Laravel project development in phpstorm- geting started


Get started with laravel using phpstorm 10.0.4

 

Download a laravel project. 

Visit https://laravel.com/docs/5.3 for downloading instruction.

Since I have composer downloaded in my windows pc, I used composer to download it. 
Go to your targeted folder (in my case-  C:\xampp\htdocs ). 
Then open terminal from there and type (amali-db is the name of my project)
 
Composer create-project --prefer-dist laravel/laravel amali-db
 
Wait till it downloaded. Then open the project using phpstorm. 

 

Configure php interpreter

 go to settings-> languages and framework ->php 
 

 

Initialize composer

go to project tool and right click on project root select composer-> init composer
 
PhpStorm can download composer.phar if needed.

Install the Laravel IDE Helper


After composer is initialized you can install laravel IDE helper by selecting composer->add dependency
search for barryvdh/laravel-ide-helper then install.



after installing you have to add the Laravel IDE helper as a ServiceProvider into your application.
 Go to config|app.php file in your project. Look for the providers array and insert line

Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
 

Generate the PHPDoc Helper File using Artisan

Go to settings-> tools-> command line tool support. Create new tool by clicking on + button on right corner. Select tool based on symfony console.


After saving you can use artisan from within the IDE. Check it by selecting tool -> run command..
Type artisan in console and see;




Now you are ready to go. Happy coding! 🙋

References:



Comments

  1. I read that Post and got it fine and informative. Please share more like that...Great Article it its really informative and innovative keep here:
    web design | laravel development

    ReplyDelete
  2. Hi,

    Great article...! I read your article it will be impressive & informative to me and thanks for sharing your article laravel development

    ReplyDelete
  3. ExpressTech Software Solutions is a laravel Development Company with experts in this field with years of experience, offering a wide range of solutions. With more than 20 projects delivered with Laravel technology, our team of expert Laravel rockstars will work diligently to deliver your dream project with full assurance of customer satisfaction. Contact@ExpressTechSoftwares.Com or +91-9806724185

    ReplyDelete

Post a Comment