Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config CRUD #99

Closed
guillermohaad opened this issue Sep 7, 2016 · 9 comments
Closed

Config CRUD #99

guillermohaad opened this issue Sep 7, 2016 · 9 comments

Comments

@guillermohaad
Copy link

hi,

I already have everything ready but when I try to enter the CRUD tells me that page not found
look:
crud

_file routes.php_*

'admin', 'middleware' => 'admin'], function() { Route::get('dashboard', 'Admin\AdminController@index'); ``` // [...] other routes // Dick CRUD: Define the resources for the entities you want to CRUD. CRUD::resource('tag', 'Admin\TagCrudController'); ``` });
@tabacitu
Copy link
Member

tabacitu commented Sep 7, 2016

Hi @guillermohaad ,

Are you sure you have app\Http\Controllers\Admin\TagCrudController.php and its namespace is correct? It sounds exactly like a controller misconfiguration.

Cheers!

Cheers!

@guillermohaad
Copy link
Author

Hello friend, nice to talk to you again
attached image file structure and controller file, thank you
controler
----- TagCrudController.php ----------------

crud->setModel("App\Models\Tag"); $this->crud->setRoute("admin/tag"); $this->crud->setEntityNameStrings('tag', 'tags'); $this->crud->setColumns(['name']); $this->crud->addField([ 'name' => 'name', 'label' => "Tag name" ]); } ``` public function store(StoreRequest $request) { return parent::storeCrud(); } public function update(UpdateRequest $request) { return parent::updateCrud(); } } ---

@guillermohaad
Copy link
Author

Friends all packages work great except this CRUD, which can be?

@tabacitu
Copy link
Member

tabacitu commented Sep 8, 2016

Are you using Laravel 5.3? If so, the route file has changed - it is now no longer app/Http/routes.php, but routes/web.php and/or routes/api.php.

Was this the issue, I wonder?

@guillermohaad
Copy link
Author

everything works great, you're an angel friend, thanks for teaching.
as I can donarte something thanks to this wonderful package?

excuse my English, we'll be in touch

@tabacitu
Copy link
Member

tabacitu commented Sep 9, 2016

Glad it's fixed!

Sure, I've just setup the Patreon page, where you can donate as little as $1/month to help me spend more time on Backpack.

Contributing with bug reports and bug fixes is also very useful :-)

Cheers, thanks!

@guillermohaad
Copy link
Author

ok, friend, I will proceed to donate,
Friend another question? me I can bring data from a database of SQL Server for a list control?

@tabacitu
Copy link
Member

tabacitu commented Sep 9, 2016

Great :-) I'm not pushing.

Theoretically, CRUDs work perfectly with SQL Server, because everything is done through Eloquent. I haven't tested it myself, but others are using it this way.

@guillermohaad
Copy link
Author

thanks friend, you're great

This was referenced Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants