PHP - Controllers With Array Data

PHOTO EMBED

Fri Oct 15 2021 19:07:24 GMT+0000 (UTC)

Saved by @TheInspired #php

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class UsersController extends Controller
{
    function index() {
        $d=['name' => "Ayo", 'email' => "ayo.com", 'address' => 'Nigeria'];
        return view('users', ['data' => $d]);
    }
}
content_copyCOPY