starter-laravel-angular icon indicating copy to clipboard operation
starter-laravel-angular copied to clipboard

Creating a new MVC?

Open elogicmedia opened this issue 8 years ago • 1 comments

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

elogicmedia avatar Nov 03 '16 21:11 elogicmedia

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

0xd5dc avatar Dec 24 '16 03:12 0xd5dc