Dynamic position rendering for homepage

This commit is contained in:
2020-05-08 01:45:29 +01:00
parent a4e415943a
commit 49c1ed4698
4 changed files with 56 additions and 68 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Http\Controllers;
use App\Vacancy;
use Illuminate\Http\Request;
class HomeController extends Controller
@@ -13,6 +14,7 @@ class HomeController extends Controller
*/
public function index()
{
return view('home');
return view('home')
->with('positions', Vacancy::where('vacancyStatus', 'OPEN')->get());
}
}