Resources

Resources are tables that need simple CRUD operations.

Creating a new resource

Laramanager will not automatically create migrations or alter your database schema. It was built to be very lightweight and flexible to the developer. So first a model and migration will need to be created for the resource before it can be added in Laramanager.

php artisan make:model Event --migration

Now this table can be added as a resource. Navigate to resources under the "System" navigation section.

Laramanager resources page

Next click "Create".

Laramanager resources page

  • Name- This is the name of your resource. It does not need to match the table name.
  • Table Name - The exact name of the table in your database.
  • Namespace - The namespace of your application.
  • Model - The location of your model class. Make sure to include any parent folders (i.e. "Models/").
  • Order Column - What column should be ordered after fields are created for this resource.
  • Order Direction - Order direction for the order column.

Laramanager resources page

After adding the resource, the "Fields" page will show.

Laramanager resources page

This is where the editable table fields are added for this resource. More about this in the fields section. Once you have added the resource it will show up in the "Resources" list.

Laramanager resources page

When created, this resource will automatically be added to the admin navigation. See navigation section for more information.