Zemke / starter-laravel-angular

Laravel and AngularJS Starter Application Boilerplate featuring Laravel 5.3 and AngularJS 1.5.8
https://starter-laravel-angular.herokuapp.com
Other
368 stars 118 forks source link

Creating a new MVC? #45

Open elogicmedia opened 7 years ago

elogicmedia commented 7 years ago

I was wondering what is the basic process too creating a new MVC / table to work in the same way as your todo with the API and page routeing?

Say a posts controller / modal and views with the angular routeing included?

I tried the normal route by copyings the MVC of the todos and manually created the table but I suspect this is wrong. It hasn't created the angular controllers, something now I suspect gulp does? I have never used gulp before.

Thanks

0xd5dc commented 7 years ago

I added a model, contact;here are the files you need to create or change

app/Http/Controllers/ContactController.php
resources/assets/js/app.js
resources/assets/js/controllers/ContactController.js
resources/assets/js/services/ContactService.js
resources/views/layout.blade.php
resources/views/partials/contacts/create.php
resources/views/partials/contacts/index.php
resources/views/partials/contacts/view.php
routes/api.php