shridharkaushik29/laravel-angular-app

AngularJS Applications in Laravel

1.1.3 2018-11-11 02:29 UTC

README

This plugin provides a great eloquent way of creating angularjs applications, run them in the browser and quickly create an Android and iOS app using cordova.

Installation:

Just run the following command in terminal:

composer require shridharkaushik29/laravel-angular-app

Usage:

  1. Add the provider in config/app.php
"providers" => [
    Shridhar\Angular\Provider::class
]
  1. Create a config file angular.php in app/config directory, like below.
return [
    "apps" => [                //Array containing configs for all the individual apps
            [
            "name" => "saving-mantra",
            "html5Mode" => true,
            "dependencies" => [
                "ngMaterial",
                "ui.router",
                "ngCrud",
                "ngRouteTitle",
                "ngFileInput",
                "ngLightgallery",
                "ionic.native"
            ],
            "title" => "Saving Mantra",
            "bower" => [
                "components" => [
                    "jquery",
                    "animate.css",
                    "bootstrap",
                    "font-awesome",
                    "angular",
                    "angular-material",
                    "angular-ui-router",
                    "ng-route-title",
                    "ng-files",
                    "ng-lightgallery",
                    "lg-zoom",
                    "lg-thumbnail",
                    "ng-crud",
                    "ionic-native"
                ]
            ],
            "site" => [
                "routes" => [
                    "{path?}" // Route pattern, which follows standard route pattern in laravel
                ]
            ],
        ]
    ]
]