You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
264 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\Photo;
use Illuminate\Http\Request;
class PhotoController extends Controller
{
public function index()
{
return view('photos.index', [
'photos' => Photo::all()
]);
}
}