예제 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //Price Model Listing load
     $prices = PriceModel::all();
     $admin = AdminProfile::all()->last();
     return view('admin.price.index', ['price' => $prices, 'admin' => $admin]);
 }
예제 #2
0
 public function testDeleteButtonPricePanel()
 {
     $price = PriceModel::all()->last();
     $delete = $price->delete();
     $user = factory(User::class)->create();
     $this->actingAs($user)->withSession(['sarbik' => 'sarbik'])->visit('admin/price/')->press('Delete')->returnArgument($delete);
 }