Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1523 | Revision 1529 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1523 Revision 1527
Zeile 10... Zeile 10...
10
    class ActionMediumController extends Controller
10
    class ActionMediumController extends Controller
11
    {
11
    {
12
        //
12
        //
13
        public static function liste( int $aktionId ): Factory|View|Application
13
        public static function liste( int $aktionId ): Factory|View|Application
14
        {
14
        {
15
            $media = ActionMedium::with( 'medium' )->find( $aktionId );
15
            $media = ActionMedium::with( 'medium' )->where( "action_id", "=", $aktionId )->get();
16
            return view( "admin/bilder", [ "bilder" => $media ] );
16
            return view( "admin/bilder", [ "bilder" => $media ] );
17
        }
17
        }
18
    }
18
    }