laravel: form action isn’t working in laravel-5.8

When i click on submit button to submit data then it says: 404|not found route Route::resource(‘contactform’, ‘ContactformController’); blade <form class=”leave-comment” action=”” method=”POST”> <h4 class=”m-text26 p-b-36 p-t-15″> Send us your message </h4> <div class=”bo4 of-hidden size15 m-b-20″> <input class=”sizefull s-text7 p-l-22 p-r-22″ type=”text” name=”contact_name” placeholder=”Full Name”> </div> <div class=”bo4 of-hidden size15 m-b-20″> <input class=”sizefull s-text7 p-l-22…

blank page in next page in laravel pagination

Pagination in laravel is showing blank page in pages other than first. below is controller $products=DB::table(‘products’)->join(‘mobile_devices’, ‘products.id’, ‘=’, ‘mobile_devices.product_id’)->where(‘mobile_devices.brand’, ‘=’,$request->brand) ->where(‘mobile_devices.ram’, ‘=’, $request->ram) ->where(‘mobile_devices.storage’, ‘=’,$request->storage ) ->select(‘products.*’)->paginate(15); below is blade <div class=”product-filter product-filter-bottom filters-panel”> <div class=”row”> <div class=”col-sm-6 text-left”></div> <div class=”col-sm-6 text-right”></div> </div> </div> working fine in eloquent result but in query result the problem…

Laravel connect database to another server by SSH [duplicate]

This question already has an answer here: Connect to a MySQL server over SSH in PHP 6 answers I have connected to the server successfully ssh -i ~/.ssh/BaltimoreCyberTrustRoot.crt.pem user@16.17.131.26 How to config my app Laravel to connect database to another server? ‘mysql’ => [ ‘driver’ => ‘mysql’, ‘url’ => env(‘DATABASE_URL’), ‘host’ => env(‘DB_HOST’, ‘127.0.0.1’), ‘port’…

How to fix Laravel 6 Undefined variable

I need some help to fix the error from my code. I am trying to Display data on Laravel view page. But while I am trying to use #foreach then I am getting error on the View page. I’m getting this error: Undefined variable: employee (View: I:\server\htdocs\laravel-projects\ocofamerica.com\resources\views\adminboard\employee\application.blade.php) I want to display the database info. Here’s…