namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Project;
class ProjectsController extends Controller
{
public function index()
{
}
public function create()
{
$projects = Project::all();
return view('Birdboardproject.index', compact('projects'));
}
public function store(Request $request)
{
Project::create(request(['title', 'description']));
}
}
@jaspal you should not assert on multiple routes in one test. Move this to a seperate test and simply add the data before the route call (i would use a factory)