https://github.com/sergeymakinen/laravel-phpstorm-stubs
Laravel PhpStorm autocomplete stubs
https://github.com/sergeymakinen/laravel-phpstorm-stubs
auto-complete idea jetbrains laravel laravel-phpstorm-stubs php phpstorm stub stub-files stubs
Last synced: 6 months ago
JSON representation
Laravel PhpStorm autocomplete stubs
- Host: GitHub
- URL: https://github.com/sergeymakinen/laravel-phpstorm-stubs
- Owner: sergeymakinen
- License: mit
- Archived: true
- Created: 2016-09-01T01:40:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-16T11:46:15.000Z (about 9 years ago)
- Last Synced: 2026-01-11T19:34:25.972Z (6 months ago)
- Topics: auto-complete, idea, jetbrains, laravel, laravel-phpstorm-stubs, php, phpstorm, stub, stub-files, stubs
- Language: PHP
- Size: 68.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Laravel PhpStorm autocomplete stubs
Stubs for PhpStorm (may be for some other IDEs as well) to get a code completion working for Laravel facades, Query/Eloquent builders. Requires Laravel 5.1 or higher.
[](https://packagist.org/packages/sergeymakinen/laravel-phpstorm-stubs) [](https://packagist.org/packages/sergeymakinen/laravel-phpstorm-stubs) [](LICENSE)
## Installation
The preferred way to install this extension is through [composer](https://getcomposer.org/download/).
Either run
```bash
composer require "sergeymakinen/laravel-phpstorm-stubs:^1.0"
```
or add
```json
"sergeymakinen/laravel-phpstorm-stubs": "^1.0"
```
to the require section of your `composer.json` file.
## Notes
If you got no code completion on Eloquent models, add a Model mixin tag, see an example:
```php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
/**
* @mixin Model
*/
class User extends Model implements AuthenticatableContract, CanResetPasswordContract
{
// ...
}
```
Have fun!