1234567891011121314151617181920212223242526 |
- <?php
-
- namespace App\Http\Traits;
- use App\Models\Presentation;
- trait PresentationTrait {
-
-
- public function index() {
-
- $presentations = Presentation::all();
- return view('backend.presentation.index')->with(compact('presentations'));
-
- }
- public function Create(){
- $presentation = Presentation::all();
- if($presentation->isEmpty()){
- return view('backend.presentation.add');
- }else{
- abort(404);
- }
- }
-
- }
|