Laravel with IIS, routing problems

My problem is that my routes in web.php are not working properly. Route::get(‘/’, function () { return view(‘welcome’); }); Sends me here https://ibb.co/SXW19fw It should show me the Laravel landing page Route::get(‘/test/’, function () { echo “Welcome”; }); The second one gives HTTP 500.19 — Internal Server Error https://ibb.co/JmW816g Here is my web.config <?xml version=”1.0″…

laravel Show old post data once validation is failed

I am trying to update a post and for that I have form with following markup <form method=”post” action=””> <input name=”_method” type=”hidden” value=”PATCH”> <div class=”form-group”> <label for=”name”>Service Name</label> <input type=”text” class=”form-control” id=”name” name=”name” value=””> </div> <button type=”submit” class=”btn btn-primary”>Submit</button> </form> Initially when form opens it should show model value that is and once form is…

How to convert this SQL to Laravel Sintax?

Here my MySQL query (work in phpMyAdmin) : SELECT waktu_kerusakan, workcenter, COUNT(workcenter) AS jumlah_repair FROM repair WHERE year(waktu_kerusakan)=’2019′ GROUP BY workcenter , month(waktu_kerusakan) BETWEEN 1 and 6 Order By jumlah_repair Desc then, i try in Laravel Sintax like this below (not work) : $sql = Main::groupBy(‘workcenter’)->select(‘workcenter’, \DB::raw(‘count(*) as frekuensi’)) ->whereYear(‘waktu_kerusakan’, ‘like’, “%”.$tahun.”%”) ->OrderBy(‘frekuensi’, ‘Desc’) ->groupBy(\DB::raw(“MONTH(waktu_kerusakan)”),…

How to convert this SQL to Laravel Sintax?

Here my MySQL query (work in phpMyAdmin) : SELECT waktu_kerusakan, workcenter, COUNT(workcenter) AS jumlah_repair FROM repair WHERE year(waktu_kerusakan)=’2019′ GROUP BY workcenter , month(waktu_kerusakan) BETWEEN 1 and 6 Order By jumlah_repair Desc then, i try in Laravel Sintax like this below (not work) : $sql = Main::groupBy(‘workcenter’)->select(‘workcenter’, \DB::raw(‘count(*) as frekuensi’)) ->whereYear(‘waktu_kerusakan’, ‘like’, “%”.$tahun.”%”) ->OrderBy(‘frekuensi’, ‘Desc’) ->groupBy(\DB::raw(“MONTH(waktu_kerusakan)”),…