app/Http/Controllers/admin/TagController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $colors = [
            'red' => 'Color rojo',
            'yellow' => 'Color amarillo',
            'blue' => 'Color azul',
            'green' => 'Color verde',
            'pink' => 'Color rosado',
            'purple' => 'Color purpura',
            'indigo' => 'Color indígo'
        ];
        return view('admin.tags.create', compact('colors'));
    }
public function create ( ) { $ colors = [ 'red' => 'Color rojo' , 'yellow' => 'Color amarillo' , 'blue' => 'Color azul' , 'green' => 'Color verde' , 'pink' => 'Color rosado' , 'purple' => 'Color purpura' , 'indigo' => 'Color indígo' ] ; return view ( 'admin.tags.create' , compact ( 'colors' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .