2017 © Pedro Peláez
 

library laravel-angular-app

AngularJS Applications in Laravel

image

shridharkaushik29/laravel-angular-app

AngularJS Applications in Laravel

  • Thursday, June 21, 2018
  • by shridharkaushik29
  • Repository
  • 0 Watchers
  • 0 Stars
  • 41 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 141 % Grown

The README.md

laravel-angular-app

This plugin provides a great eloquent way of creating HTML5 applications with AngularJS, Angular, ReactJS, Vue and many more., (*1)

Don't go with the name of the package i.e. laravel-angular-app, because initially, this package was designed to create only AngularJS applications, but now it's objective is to create, build and load assets in an elegant way in Laravel., (*2)

Installation:, (*3)

composer require shridharkaushik29/laravel-angular-app, (*4)

Usage:, (*5)

Add the provider in config/app.php. Skip this step if you are using Laravel version greater than 5.4., (*6)

"providers" => [
    Shridhar\Angular\Provider::class
]

Creating multiple apps per Laravel Installation., (*7)

This package offers to create multiple webpack applications in a single Laravel installation. For example, if you want to create an E-Commerce application, then it would require a separate application to manage the content for the front end application. This is handled very efficiently in this package because you can create as many applications you want with different blades., (*8)

Creating Blade View, (*9)

```php+HTML @angular("react") {{--Used to set app name--}} @route("react") {{--Used to define site route name--}} @title("Laravel React") {{--Used to define application title--}} @servicesRoute("services") {{--Used to define services route, when defined a $servicesUrl variable is defined in javascript--}} , (*10)

{{$app->title()}} url()}}" rel="stylesheet"/> @vars() {{--Used to print

**Loading View** There's nothing special required to load views, it's as usual. ```php Route::get('/', function () { return view('welcome'); });

Creating Assets, (*11)

This package assumes a folder with the app name in public/assets directory, where all of the assets are placed for that application., (*12)

For example, if an app is having name welcome, then there should be a directory public/assets/welcome containing all the javascript, css, images and other assets required by that application., (*13)

Loading Assets, (*14)

$app->asset("path/for/asset") will return an instance for Shridhar\Bower\Asset class., (*15)

It contains an url() method which return an absolute url for that asset., (*16)

php+HTML <link href="{{$app->asset("style.css")->url()}}" rel="stylesheet"/> <script src="{{$app->asset("runtime.js")->url()}}" async></script> <img src="{{$app->asset("logo.jpg")->url()}}">, (*17)

The Versions

21/06 2018

dev-master

9999999-dev

AngularJS Applications in Laravel

  Sources   Download

MIT

The Requires

 

by Avatar shridharkaushik29

21/06 2018

1.1.1

1.1.1.0

AngularJS Applications in Laravel

  Sources   Download

MIT

The Requires

 

by Avatar shridharkaushik29

20/06 2018

1.1

1.1.0.0

AngularJS Applications in Laravel

  Sources   Download

MIT

The Requires

 

by Avatar shridharkaushik29

29/04 2018

1.0

1.0.0.0

AngularJS Applications in Laravel

  Sources   Download

MIT

The Requires

 

by Avatar shridharkaushik29