Skip to content

Commit 2f913b1

Browse files
committed
Fixed delivery pdf
1 parent 671bf28 commit 2f913b1

File tree

4 files changed

+62
-0
lines changed

4 files changed

+62
-0
lines changed

resources/lang/en/lang.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,4 +380,5 @@
380380
'create_delivery' => 'create delivery',
381381
'delivery_created_from_order' => 'delivery created from order',
382382
'delivery' => 'delivery',
383+
'delivered' => 'delivered',
383384
];

src/Http/Controllers/DeliveryController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace VentureDrake\LaravelCrm\Http\Controllers;
44

5+
use Barryvdh\DomPDF\Facade\Pdf;
56
use Illuminate\Http\Request;
67
use VentureDrake\LaravelCrm\Http\Requests\StoreDeliveryRequest;
78
use VentureDrake\LaravelCrm\Http\Requests\UpdateDeliveryRequest;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace VentureDrake\LaravelCrm\Http\Requests;
4+
5+
use Illuminate\Foundation\Http\FormRequest;
6+
7+
class StoreDeliveryRequest extends FormRequest
8+
{
9+
/**
10+
* Determine if the user is authorized to make this request.
11+
*
12+
* @return bool
13+
*/
14+
public function authorize()
15+
{
16+
return true;
17+
}
18+
19+
/**
20+
* Get the validation rules that apply to the request.
21+
*
22+
* @return array
23+
*/
24+
public function rules()
25+
{
26+
return [
27+
//
28+
];
29+
}
30+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace VentureDrake\LaravelCrm\Http\Requests;
4+
5+
use Illuminate\Foundation\Http\FormRequest;
6+
7+
class UpdateDeliveryRequest extends FormRequest
8+
{
9+
/**
10+
* Determine if the user is authorized to make this request.
11+
*
12+
* @return bool
13+
*/
14+
public function authorize()
15+
{
16+
return true;
17+
}
18+
19+
/**
20+
* Get the validation rules that apply to the request.
21+
*
22+
* @return array
23+
*/
24+
public function rules()
25+
{
26+
return [
27+
//
28+
];
29+
}
30+
}

0 commit comments

Comments
 (0)