Fixed blade references.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\ExternalLink;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ExternalLinkController extends Controller
|
||||
@@ -9,11 +10,14 @@ class ExternalLinkController extends Controller
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
* @param Request $request
|
||||
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
*/
|
||||
public function index()
|
||||
public function index(Request $request)
|
||||
{
|
||||
//
|
||||
$externalLink = ExternalLink::query()->paginate($request->input("limit", 20));
|
||||
|
||||
return view("external-link.index", [ "externalLink" => $externalLink ]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -169,7 +169,7 @@ class UserController extends Controller
|
||||
|
||||
if(Auth::attempt($data)) {
|
||||
//TODO: Implement home?
|
||||
return view("admin.users.home", [ "user" => Auth::user() ]);
|
||||
return view("admin.users.index", [ "user" => Auth::user() ]);
|
||||
}
|
||||
|
||||
return redirect()->back(303);
|
||||
|
||||
@@ -18,7 +18,7 @@ class WashingMachineController extends Controller
|
||||
{
|
||||
$machines = WashingMachine::query()->paginate($request->query("page", 1));
|
||||
|
||||
return view("washing-machine.index", [ "machines" => $machines ]);
|
||||
return view("admin.washing-machines.index", [ "machines" => $machines ]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,7 +28,7 @@ class WashingMachineController extends Controller
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view("washing-machine.create");
|
||||
return view("admin.washing-machines.create");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,7 +46,7 @@ class WashingMachineController extends Controller
|
||||
$machine = new WashingMachine($data);
|
||||
$machine->save();
|
||||
|
||||
return view("washing-machine.store");
|
||||
return view("admin.washing-machines.store");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,7 +59,7 @@ class WashingMachineController extends Controller
|
||||
{
|
||||
$machine = WashingMachine::find($id);
|
||||
|
||||
return view("washing-machine.show", [
|
||||
return view("admin.washing-machines.show", [
|
||||
"machine" => $machine
|
||||
]);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ class WashingMachineController extends Controller
|
||||
{
|
||||
$machine = WashingMachine::find($id);
|
||||
|
||||
return view("washing-machine.edit", [
|
||||
return view("admin.washing-machines.edit", [
|
||||
"machine" => $machine
|
||||
]);
|
||||
}
|
||||
@@ -98,7 +98,7 @@ class WashingMachineController extends Controller
|
||||
|
||||
$machine->save();
|
||||
|
||||
return view("washing-machine.edit", [
|
||||
return view("admin.washing-machines.edit", [
|
||||
"machine" => $machine
|
||||
]);
|
||||
}
|
||||
@@ -114,6 +114,6 @@ class WashingMachineController extends Controller
|
||||
$machine = WashingMachine::find($id);
|
||||
$machine->delete();
|
||||
|
||||
return view("washing-machine.destroy");
|
||||
return view("admin.washing-machines.destroy");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user