- Added DocumentController for handling document uploads and management. - Created Document model with necessary attributes and relationships. - Implemented DocumentService for business logic related to documents. - Set up routes for document management in both web and API contexts. - Developed views for document upload using Dropzone for file handling. - Included necessary assets and styles for the Document module. - Created migration for documents table with appropriate fields. - Added configuration and service provider for the Document module.
20 lines
653 B
PHP
20 lines
653 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Document\Http\Controllers\DocumentController;
|
|
|
|
/*
|
|
*--------------------------------------------------------------------------
|
|
* API Routes
|
|
*--------------------------------------------------------------------------
|
|
*
|
|
* Here is where you can register API routes for your application. These
|
|
* routes are loaded by the RouteServiceProvider within a group which
|
|
* is assigned the "api" middleware group. Enjoy building your API!
|
|
*
|
|
*/
|
|
|
|
Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () {
|
|
Route::apiResource('document', DocumentController::class)->names('document');
|
|
});
|