Closed mihirvadalia closed 9 years ago
In other words, How can i create model with associated 'customer' table? Because i want to use model in my controller. that not able to work currently. If possible please give me an example to create custom development over your plugin. this will help me a lot.
Hi,
It's a bad idea to modify/add code in the vendor. You need to add your models in your app/ , and build it like this : http://laravel.com/docs/4.2/eloquent
For adding a custom controller, you can find it in the documentation : http://mrjuliuss.github.io/syntara/docs/custom.html#new-features
Julien
Ok, Its now working. Great plugin. Thanks.
Hi,
I am trying to overwrite view of your admin panel for my project. For example in your view you don't have footer area like 'version' etc... So how can i overwrite your view from my app folder. Can you help me for this?
Hi, sorry for the late.
In basic syntara, all views are in config file. You just need to overide the config with your own views, like this : http://mrjuliuss.github.io/syntara/docs/custom.html#custom-view
Config::set('syntara::views.dashboard-index', 'my-view');
will replace the index dashboard view your own (located in app/views/). You can replace all views and layou).
May you can be inspirate by this package : https://github.com/jakubsacha/adminlte
Hi, I am new in laravel. and i created one controller name 'CustomerController.php' with method 'index'. and i have set all route and autoload changes. but after that i create model file on your model directory 'vendor\mrjuliuss\syntara\src\models\' name as 'Customer.php'. and i create one migration to create 'customer' table. after that i put one line in index function of controllers as below. $users = Customer::all();
But then it gives me error like. Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_ERROR) Class 'Customer' not found
I am attaching controller, migration and model class here. if you help me to start that, then is very grateful to you.
Thanks in advance.