Category : backend

I have the following: public function filterStudentsByDateOfInterview($interview_date) { //return students with the day of interview: $students = Students::with(‘interviews’) ->where(‘interviews.interview_date’, $interview_date) //this returns me an error ->get(); return $students; } my question is the following: how can I make the where statement on the interviews column? if I don’t pass the where statement, works. But I ..

Read more

With the following code I populate a select dropdown item in Admin product page which I add, through a function (in my theme’s functions.php). For instance, I managed to get the list of all my product attributes (taxanomy): <?php $attributes = wc_get_attribute_taxonomies(); if($attributes) { foreach ( $attributes as $attribute ) { echo ‘<option value="’. $attribute->attribute_id ..

Read more

i installed new laravel project("Starter") and want to view ‘welcome’ page by put this url http://localhost/starter/ the page ran fine when the route be: Route::get(‘/’, function () { return view(‘welcome’); }); but when write any thing after the (/) like that: Route::get(‘/test’, function () { return view(‘welcome’); }); and view it by url : http://localhost/starter/test ..

Read more