This project has been archived. If you're curious, check out one of my latest courses:
If you work with JavaScript, check out the fetch use cases and JavaScript projects.
Thank you! — Jad Joubran
Laravel & Angular is simply a PHP package for Laravel. It is not opinionated regarding your Angular app. However we recommend using the official @angular/cli tool.
At the root level of your Laravel app, require the package using composer:
composer require jadjoubran/laravel-angular
If you're using Laravel 5.5 or newer, you can skip this step.
Inside your config/app.php
, add the Service Provider:
Jadjoubran\LaravelAngular\Provider\LaravelServiceProvider::class,
Then run the installation command
php artisan laravelangular:install
If you're interested in authenticating your users with statless Json Web Tokens, follow the JWT installation instructions
You can setup the Angular app in your own preferred way. This means, if you already have an Angular app, you don't have to change anything.
For your convenience, and if you're starting from scratch, you can follow the Angular installation guide.
If you're using Lumen rather than Laravel, follow the instructions below.
Require the package using composer, and then register the service provider.
$app->register(App\Providers\AppServiceProvider::class);