Download the PHP package bitsoftsol/laravel-administration without Composer

On this page you can find all versions of the php package bitsoftsol/laravel-administration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-administration

Laravel Administration

Total Downloads Latest Stable Version License

About Laravel Administration

Laravel Administration is a powerful package designed to simplify the development of Laravel applications by automating common CRUD (Create, Read, Update, Delete) operations. With this package, you can create models effortlessly and enjoy automatic route generation, views, and controller logic.

Features

Installation Guide

To get started with Laravel Administration, follow these steps:

  1. Create a Laravel Project:

    sh composer require bitsoftsol/laravel-administration

  2. Add LaravelAdminServiceProvider:

    Open the config/app.php file and add the LaravelAdministration service provider to the providers array:

    sh php artisan vendor:publish

  3. Install Frontend Assets:

    Run the following commands to build assets:

    sh php artisan migrate --seed

  4. Enable Authentication Routes:

    Add the following line inside your routes/web.php file:

    sh php artisan serve

  5. Access Laravel Administration:

    Open your browser and access the URL (host)/admin (e.g., http://127.0.0.1:8000/admin).

  6. Login Credentials:

    Use the following credentials to log in:

  7. Create a Superuser:

    To create a superuser for your Laravel application, follow these steps:

    • Open your terminal and navigate to the root directory of your Laravel project.

    • Run the following command:

      bash php artisan make:model Seller -m

  8. Define Seller Table Fields:

    Inside the generated migration file, define the Seller table fields, including name, email, city, country, and profile_image.

  9. Add LaravelAdmin and LaravelAdminAPI Traits:

    Inside the generated migration file, define the Seller table fields, including name, email, city, country, and profile_image. Enhance the functionality of your Seller model by importing the LaravelAdmin and LaravelAdminAPI traits.

    • Import the LaravelAdmin Trait at the top of the Seller model class:

      php use Bitsoftsol\LaravelAdministration\Traits\LaravelAdminAPI;

    • Add these two lines inside the Seller model class to include the traits:

      php protected $fillable = [ "name", "email", "city", "country", "profile_image" ];

  10. Run Migrations:

    Execute the migration to create the sellers table in your database:

    
      php artisan migrate
  11. Access the Admin Panel:

    Open your web browser and visit http://127.0.0.1:8000/admin. This is where you can manage your sellers with CRUD operations.

  12. Congratulations!

    You are now able to perform CRUD operations on the Seller model without the need for extensive coding.

    This guide empowers you to efficiently manage your sellers in your Laravel application.

Postman Guide

To use CRUD APIs for the Seller model, follow these steps:

  1. Import the Postman Collection:

    Import the provided Postman collection to access the CRUD APIs efficiently. You can download it from here: Postman Collection - Laravel Administration.

  2. Import the Environment Variables:

    Import the environment variables configuration into Postman for seamless testing. You can download it from here: Postman Environment - Laravel Administration.

  3. Set the Host Variable:

    In Postman, configure the host variable to match your application's URL, typically something like http://127.0.0.1:8000.

  4. Access the Login API:

    Make a POST request to the following API endpoint to log in:

    • API Endpoint: (host)/api/admin/login
    • Credentials:

    After a successful login, you will receive an authentication token.

  5. Set the Token Environment Variable:

    Once you receive the authentication token upon login, set it as the (token) environment variable in Postman for subsequent API requests.

  6. Fetch the Model ID:

    Retrieve the model_id for the Seller model from the following API endpoint:

    • API Endpoint: {{host}}/api/admin/crud/models

    Set the obtained model_id as the (model_id) environment variable in Postman.

  7. Access CRUD APIs for the Seller Model:

    You can now access the CRUD APIs for the Seller model using the environment variables:

    • Listing of Seller API: {{host}}/api/admin/crud/{{model_id}}
    • Detail of Seller API: {{host}}/api/admin/crud/{{model_id}}/2 (where 2 represents the seller's ID)
    • Store Seller API: {{host}}/api/admin/crud/{{model_id}}
    • Update Seller API: {{host}}/api/admin/crud/{{model_id}} (include the seller's ID in the form-data within the body tab of Postman)
    • Delete Seller API: {{host}}/api/admin/crud/{{model_id}}/3 (where 3 represents the seller's ID)
  8. Congratulations!

    You can now perform CRUD operations on the Seller model without the need for additional coding. Enjoy the convenience of Laravel Administration for managing your sellers efficiently.

Schema Builder

In the Laravel Administration application, you can effortlessly create the Seller model and its associated migration file using the Schema Builder. Here's how:

  1. Access the Schema Builder:

    • Navigate to (host)/admin/crud-schema/create in your web browser, replacing (host) with your application's URL.
  2. Enter the Model Name:

    • On the provided page, input 'Seller' as the model name.
  3. Submission:
    • Click the 'Submit' button to initiate the generation of the Seller model and its corresponding migration file in your project.

Upon successful creation, you'll be redirected to the Schema Builder list. Here, you can find the 'Seller' model in the list.

Managing Your Schema

Editing Schema

After creating the schema, you'll find an 'Open Editor' button in the 'Seller' row within the Schema Builder listing. Clicking this button will redirect you to a Visual Code Editor view, allowing you to edit the 'Seller' migration and model files.

Migration

After editing the model and migration files, you can click on the 'Migrate' button to apply the changes to your table. Once the seller table is migrated, you will no longer be able to open the editor or perform migrations, but you can still delete.

CRUD Operations

Congratulations!, you've now completed the LaravelAdministration documentation. You're all set to make the most of this powerful tool for Laravel development. Happy coding!


All versions of laravel-administration with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
darkaonline/l5-swagger Version ^8.4
laravel/ui Version ^4.2
yajra/laravel-datatables-oracle Version ^10.8
laravel/framework Version ^10.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bitsoftsol/laravel-administration contains the following files

Loading the files please wait ....