0% found this document useful (0 votes)
39 views6 pages

Laravel - Views: Create New Folder Name "Officialreceipts"

The document discusses adding functionality for official receipts in a Laravel application. It involves creating a new folder called "officialreceipts", adding a link to it in the sidebar, adding controller and factory files, updating core.js, adding routes for official receipts, and noting a current issue with clearing uploaded files.

Uploaded by

ArsyadAzmin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views6 pages

Laravel - Views: Create New Folder Name "Officialreceipts"

The document discusses adding functionality for official receipts in a Laravel application. It involves creating a new folder called "officialreceipts", adding a link to it in the sidebar, adding controller and factory files, updating core.js, adding routes for official receipts, and noting a current issue with clearing uploaded files.

Uploaded by

ArsyadAzmin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

LARAVEL - VIEWS

Create new folder name “officialreceipts”

All file in “officialreceipts” remain the same with “invoices”


in aside.blade.php , add this following code.

<li>
<a href="/officialreceipts">
<i class="fa fa-envelope icon text-primary-lter"></i>
<span class="font-bold"> Official Receipt </span>
</a>
</li><!-- / officialreceipts -->

AngularJS

in officialreceipts folder, contain two files:


controller.js
factory.js
LARAVEL ELIXIR

change the core.js to add function for officialreceipt

LARAVEL - REPOSITORIES
LARAVEL - MODELS

EMAIL JOB

awfwafwawaa
LARAVEL ROUTING

in routes.php ; (mmiddleware => auth)

// officialreceipts
Route::group(['prefix' => 'officialreceipts'], function() {
Route::get('/{batchId?}', 'OfficialreceiptController@index');
Route::get('/importer', 'OfficialreceiptController@importer');
Route::get('/pdf', 'OfficialreceiptController@pdf');
});

(prefix => api)

// officialreceipts
Route::group(['prefix' => 'officialreceipts'], function() {
Route::post('/', 'OfficialreceiptController@search');
Route::post('/import', 'OfficialreceiptController@import');
Route::post('/send', 'OfficialreceiptController@send');
Route::delete('/unimport', 'OfficialreceiptController@unimport');
});
LARAVEL - CONTROLLER

Current Issue :

- After upload the interface file, decide to cancel by clicking the Clear
button at top but nothing happen.

You might also like