Vusumzi

Vusumzi

Member Since 1 Month Ago

Experience Points
1,260
Total
Experience

3,740 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
2
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
1,260 XP
Oct
27
1 day ago
Activity icon

Replied to Laravel Vue Cannot Get Old Value Because Of V-model

I want when a user select a certain role from the dropdown list, a div element below must shown or hidden based on the users selection from the list...

<div class="col-md-6" v-if="roleType == 'learner'">
.
.
.
.

</div>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            roleType: '',
        },
    });
</script>
Activity icon

Started a new Conversation Laravel Vue Cannot Get Old Value Because Of V-model

How do I get the old value of the drop down box when validation fails?... The problem is when I include v-model in my select box, but when I remove it, works fine. How to solve this problem?

 <select id="role" name="role" class="form-control @error('role') is-invalid @enderror" value="{{ old('role') }}" v-model="roleType">
 <option value="">Choose user role...</option>

@foreach($roles as $role)
 <option value="{{ $role->name }}" {{ old('role', $role ) == $role->name ? 'selected' : '' }}>{{ $role->display_name }}</option>
                                                
  @endforeach
 </select>

The old function doesn't work when I include the v-model... please help

Oct
26
2 days ago
Activity icon

Replied to The Slug Can't Be Displayed In The Text Box

Thanks for the info dude

Activity icon

Started a new Conversation The Slug Can't Be Displayed In The Text Box

Hi all I'm trying to generate a slug in the second textbox but it cant be displayed, I only get an error:

Use of undefined constant slug - assumed 'slug' (this will throw an Error in a future version of PHP) (View: C:\xampp\htdocs\Kwakhanya-Centre\resources\views\admin\subjects\create.blade.php)

here is my code: create.blade.php

@extends('layouts.admin')

@section('main-content')
    <!-- Page Heading -->
    <h1 class="h3 mb-4 text-gray-800">{{ __('Create New Subject') }}</h1>
    <hr/>
    @if (session('message'))
    <div class="alert alert-success border-left-success alert-dismissible fade show" role="alert">
        {{ session('message') }}
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
    @endif
    <form method="POST" action="{{ route('subjects.store')}}">                
        @csrf
        <div class="row justify-content-center">
            <div class="col-md-12">
                <div class="card shadow mb-4">
                    <div class="card-body">
                        <h4 class="font-weight-bold">Subject Details:</h4>
                    <hr>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label for="name" class="font-weight-bold">Subject Name</label>
                                    <input type="text" name="name" v-model="name" class="form-control @error('name') is-invalid @enderror" id="name" value="{{ old('name') }}">
                                    @error('name')
                                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                                    @enderror
                                </div>
                                <div class="form-group">
                                    <label for="name" class="font-weight-bold">Slug</label>
                                    <input type="text" name="slug" class="form-control @error('slug') is-invalid @enderror" id="slug" value="{{ slug }}">
                                    @error('slug')
                                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                                    @enderror
                                </div>

                                <div class="form-group">
                                    <label for="description" class="font-weight-bold">Description</label>
                                    <input type="text" name="description" class="form-control  @error('description') is-invalid @enderror" id="description" value="{{ old('description') }}">
                                    @error('description')
                                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                                    @enderror
                                </div>
                             
                            </div>
                        </div>
                    </div>
                </div>
                <!-- Permissions -->
                
                <div class="col-md-12 mb-4">
                    <button type="submit" class="btn btn-primary btn-lg"><i class="fas fa-book fa-fw mr-2"></i>Create Subject</button> 
                    <a href="/grades"  class="btn btn-secondary btn-lg ml-4"><i class="fas fa-ban fa-fw mr-2"></i>Cancel</a>                
                </div>
            </div>
        </div>
    </form>
@endsection

@section('js_index_page')
<script>
    new Vue({
        el: '#app',
        data: {
            name: "",
        },
  computed: {
    slug: function() {
      var slug = this.sanitizeTitle(this.name);
      return slug;
    }
  },
  methods: {
    sanitizeTitle: function(name) {
      var slug = "";
      // Change to lower case
      var nameLower = name.toLowerCase();
      // Letter "e"
      slug = nameLower.replace(/e|é|è|ẽ|ẻ|ẹ|ê|ế|ề|ễ|ể|ệ/gi, 'e');
      // Letter "a"
      slug = slug.replace(/a|á|à|ã|ả|ạ|ă|ắ|ằ|ẵ|ẳ|ặ|â|ấ|ầ|ẫ|ẩ|ậ/gi, 'a');
      // Letter "o"
      slug = slug.replace(/o|ó|ò|õ|ỏ|ọ|ô|ố|ồ|ỗ|ổ|ộ|ơ|ớ|ờ|ỡ|ở|ợ/gi, 'o');
      // Letter "u"
      slug = slug.replace(/u|ú|ù|ũ|ủ|ụ|ư|ứ|ừ|ữ|ử|ự/gi, 'u');
      // Letter "d"
      slug = slug.replace(/đ/gi, 'd');
      // Trim the last whitespace
      slug = slug.replace(/\s*$/g, '');
      // Change whitespace to "-"
      slug = slug.replace(/\s+/g, '-');
      
      return slug;
    }
  }
});
</script>

@endsection

everything else is working fine, but how do I display the text I typed in the first text box to the second textbox as a slug?

Oct
23
5 days ago
Activity icon

Replied to Redirecting User To The Edit Profile Page

@silencebringer I tried your importing

use App\Http\Controllers\Auth\Request;

it didn't work, but then I tried importing

use Illuminate\Http\Request;

It work!!!, I don't know how... but anyway thanks dude

Activity icon

Replied to Redirecting User To The Edit Profile Page

Hi @silencebringer I added this method at the bottom of the file and I got this error... did I do something wrong?... Im new in Laravel

Argument 1 passed to App\Http\Controllers\Auth\RegisterController::registered() must be an instance of App\Http\Controllers\Auth\Request, instance of Illuminate\Http\Request given, called in C:\xampp\htdocs\Kwakhanya-Centre\vendor\laravel\ui\auth-backend\RegistersUsers.php on line 38
Activity icon

Started a new Conversation Redirecting User To The Edit Profile Page

Hi... I am having a problem here. When a new user register I want to redirect him/her to the edit profile page... how do I change the login controller to redirect to that page?

here is my RegisterController

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use App\User;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;

class RegisterController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Register Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles the registration of new users as well as their
    | validation and creation. By default this controller uses a trait to
    | provide this functionality without requiring any additional code.
    |
    */

    use RegistersUsers;

    /**
     * Where to redirect users after registration.
     *
     * @var string
     */
    protected $redirectTo = '/profiles/'.$user->id.'/edit';

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest');
    }

    /**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
    protected function validator(array $data)
    {
        return Validator::make($data, [
            'type' => ['required'],
            'name' => ['required', 'string', 'max:255'],
            'last_name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
            'phone' => ['required', 'string', 'max:15', 'unique:users'],
            'password' => ['required', 'string', 'min:8', 'confirmed'],
        ]);
    }

    

    /**
     * Create a new user instance after a valid registration.
     *
     * @param  array  $data
     * @return \App\User
     */
    protected function create(array $data)
    {
        $user = User::create([
            'name' => $data['name'],
            'last_name' => $data['last_name'],
            'email' => $data['email'],
            'phone' => $data['phone'],
            'type' => $data['type'],
            'password' => Hash::make($data['password']),
        ]);
        
            if($data['type'] == 'Learner'){
                $user->attachRole('learner');
                return $user;
            }
            elseif($data['type'] == 'Guardian'){
                $user->attachRole('guardian');
                return $user;
            }
            elseif($data['type'] == 'Teacher'){
                $user->attachRole('teacher');
                return $user;
            }
    }
}

edit.blade.php

@extends('layouts.admin')

@section('main-content')
    <!-- Page Heading -->
    <h1 class="h3 mb-4 text-gray-800">{{ $user->name }} {{$user->last_name}}</h1>
    <hr/>
    @if (session('message'))
    <div class="alert alert-success border-left-success alert-dismissible fade show" role="alert">
        {{ session('message') }}
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
    @endif
    

    <form method="POST" action="{{ route('profiles.update', $user->id) }}">
        @csrf
        @method('PATCH')
        <div class="row">
            <div class="col-md-9">
                <div class="card shadow mb-4 px-4 pb-4">
                    <div class="card-header py-3 px-0">
                        <h6 class="m-0 font-weight-bold text-primary">User Information</h6>
                    </div>
                    @if(Auth::user()->hasRole(['superadministrator', 'administrator']))
                    <div class="row my-2">
                            <div class="col-md-2 font-weight-bold pt-2">Role:</div>
                            <div class="col-md-10">
                                <div class="form-group">
                                    <select id="role" name="role" class="form-control @error('role') is-invalid @enderror" value="{{ old('role') }}">
                                        <option value="">Choose user role...</option>
                                            @foreach($roles as $role)
                                                <option value="{{ $role->display_name }}" {{ $user->hasRole($role->name) ? 'selected' : '' }}>{{ $role->display_name }}</option>
                                            @endforeach
                                    </select>
                                    @error('role')
                                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                                    @enderror
                                </div>
                            </div>
                        </div>

. . . . .
	

The user must come to this page after registration not to the home directory... please help

Oct
21
1 week ago
Activity icon

Started a new Conversation How To Count The Number Of Users With Role = Learner?

from this collection, I want to count and display the number of users which has the role of a learner

array:7 [▼
  0 => array:21 [▶]
  1 => array:21 [▶]
  2 => array:21 [▶]
  3 => array:21 [▶]
  4 => array:21 [▼
    "id" => 5
    "name" => "Learner"
    "last_name" => "Learner"
    "email" => "[email protected]"
    "email_verified_at" => null
    "phone" => "3427932821"
    "type" => null
    "avatar" => "default.jpg"
    "gender" => null
    "identity" => null
    "street" => null
    "suburb" => null
    "city" => null
    "province" => null
    "code" => null
    "school" => null
    "grade" => null
    "subjects" => null
    "created_at" => "2020-10-21T11:48:11.000000Z"
    "updated_at" => "2020-10-21T11:48:11.000000Z"
    "roles" => array:1 [▼
      0 => array:7 [▼
        "id" => 5
        "name" => "learner"
        "display_name" => "Learner"
        "description" => "Learner"
        "created_at" => "2020-10-21T11:48:11.000000Z"
        "updated_at" => "2020-10-21T11:48:11.000000Z"
        "pivot" => array:3 [▶]
      ]
    ]
  ]
  5 => array:21 [▶]
  6 => array:21 [▶]
]

here is my Usercontroller

public function index()
    {
      
        $users = User::with('roles')->orderBy('created_at', 'desc')->get();   

        return view('admin.users.index', compact('users'));
    }

I want to display the count result in the blade.php file

Activity icon

Started a new Conversation How To Restrict Some Options In A Select Box Using Laratrust 5.2.*

Hi all, is there a way of hiding some options in a dropdown select box for a users who are not admins?

My Controller

public function edit($id)
    {
        $user = User::with('roles')->findOrFail($id);
        $roles = Role::all();
        return view('profiles.edit', compact('roles', 'user'));  
    }

edit.blade.php

 @if(Auth::user()->hasRole(['superadministrator', 'administrator']))
                    <div class="row my-2">
                            <div class="col-md-2 font-weight-bold pt-2">Role:</div>
                            <div class="col-md-10">
                                <div class="form-group">
                                    <select id="role" name="role" class="form-control @error('role') is-invalid @enderror" value="{{ old('role') }}">
                                        <option value="">Choose user role...</option>
                                            @foreach($roles as $role)
                                                <option value="$role->display_name" {{ $user->hasRole($role->name) ? 'selected' : '' }}>{{ $role->display_name }}</option>
                                            @endforeach
                                    </select>
                                    @error('role')
                                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                                    @enderror
                                </div>
                            </div>
                        </div>
                        @endif

what I was is, if a user is an administrator, he can only see certain options in the dropdown list and if he is a super administrator, all options are available... is it possible?

Oct
20
1 week ago
Activity icon

Started a new Conversation Display The Results In A Table Format

Hi all... I want to display the result of the permissions table in a table format... I'm using Laratrust for roles and permissions

my RoleController

 public function show($id)
    {
        
        $role = Role::with('permissions')->with('users')->where('id', $id)->first();
        return view('admin.roles.show', compact('role'));  
    }

I want the results to be display in this table horizontally like the way I hard-coded it

show.blade.php

<table class="table">
                            <thead class="thead-dark">
                                <tr>
                                    <th scope="col">PERMISSION</th>
                                    <th scope="col">CREATE</th>
                                    <th scope="col">READ</th>
                                    <th scope="col">UPDATE</th>
                                    <th scope="col">DELETE</th>
                                </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <th scope="col">Users</th>
                                <td>Create User</td>
                                <td>Read User</td>
                                <td>Update User</td>
                                <td>Delete User</td>
                            </tr>
                            <tr>
                                <th scope="col">Profile</th>
                                <td>Create Profile</td>
                                <td>Read Profile</td>
                                <td>Update Profile</td>
                                <td>Delete Profile</td>
                            </tr>
                            </tbody>
                    </table>
Oct
19
1 week ago
Activity icon

Replied to How To Fix These Errors I'm Getting In The Console?

This is my entire create.blade.php

@extends('layouts.admin')

@section('main-content')
    <!-- Page Heading -->
    <h1 class="h3 mb-4 text-gray-800">Create New Permission</h1>
    <hr/>
    @if (session('message'))
    <div class="alert alert-success border-left-success alert-dismissible fade show" role="alert">
        {{ session('message') }}
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
    @endif
    <div class="row justify-content-center">
        <div class="col-md-12">
        <div class="row my-3">
            <div class="col-md-10" v-model="permissionType">
                <div class="custom-control custom-radio custom-control-inline">
                    <input type="radio" id="basic" name="permission_type" class="custom-control-input" 
                    value="basic" />
                    <label class="custom-control-label font-weight-bold" for="basic">Simple Permission</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                    <input type="radio" id="crud" name="permission_type" class="custom-control-input" 
                    value="crud" />
                    <label class="custom-control-label font-weight-bold" for="crud">Advance Permission</label>
                </div>
            </div>
        </div>
            <div class="card shadow mb-4">
                <div class="card-body">
                    <h4 class="font-weight-bold">Permission Details:</h4>
                 <hr>
                <form method="POST" action="{{ route('roles.store')}}">
                    @csrf
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group" v-if="permissionType =='basic'">
                                <label for="name" class="font-weight-bold">Name</label>
                                <input type="text" name="name" class="form-control @error('name') is-invalid @enderror" id="name" value="{{ old('name') }}" required>
                                @error('name')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class="form-group" v-if="permissionType =='basic'">
                                <label for="name" class="font-weight-bold">Slug</label>
                                <input type="text" name="slug" class="form-control @error('slug') is-invalid @enderror" id="slug" value="{{ old('slug') }}" required disabled>
                                @error('slug')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class="form-group" v-if="permissionType =='basic'">
                                <label for="description" class="font-weight-bold">Description</label>
                                <input type="text" name="description" class="form-control  @error('description') is-invalid @enderror" id="description" value="{{ old('description') }}" required>
                                @error('description')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                    </div>
                </div>
            </div>


            <div class="card shadow mb-4"  v-if="permissionType =='crud'">
                <div class="card-body">
                    <h4 class="font-weight-bold">Permissions:</h4>
                    <div class="row">
                        <div class="col-md-12">
                        <table class="table">
                            <thead class="thead-dark">
                                <tr>
                                <th scope="col">TYPE</th>
                                <th scope="col">CREATE</th>
                                <th scope="col">VIEW</th>
                                <th scope="col">UPDATE</th>
                                <th scope="col">DELETE</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th scope="row">Learner</th>
                                    <td>
                                    <div class="custom-control custom-checkbox ml-3">
                                        <input type="checkbox" class="custom-control-input" id="check1">
                                        <label class="custom-control-label" for="check1">&nbsp;</label>
                                    </div>
                                    </td>
                                    <td>
                                    <div class="custom-control custom-checkbox ml-3">
                                        <input type="checkbox" class="custom-control-input" id="check2">
                                        <label class="custom-control-label" for="check2">&nbsp;</label>
                                    </div>
                                    </td>
                                    <td>
                                    <div class="custom-control custom-checkbox ml-3">
                                        <input type="checkbox" class="custom-control-input" id="check3">
                                        <label class="custom-control-label" for="check3">&nbsp;</label>
                                    </div>
                                    </td>
                                    <td>
                                    <div class="custom-control custom-checkbox ml-3">
                                        <input type="checkbox" class="custom-control-input" id="check4">
                                        <label class="custom-control-label" for="check4">&nbsp;</label>
                                    </div>
                                    </td>
                                </tr>
                            </tbody>
                            </table>                            
                        </div>
                    </div>
                </div>
            </div>
                <div class="col-md-12 mb-4">
                    <button type="submit" class="btn btn-primary btn-lg"><i class="fas fa-user-edit fa-fw mr-2"></i>Create Permission</button> 
                    <a href="/roles"  class="btn btn-secondary btn-lg ml-4"><i class="fas fa-ban fa-fw mr-2"></i>Cancel</a>                
                </div>
        </form>
    </div>

    </div>

@endsection

@section('js_index_page')
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                permissionType: 'basic',
                resource: '',
                crudSelected: ['create', 'read', 'update', 'delete']
            },
            methods: {}
        });
    </script>
@endsection

Im trying but I still get the same errors

Activity icon

Started a new Conversation How To Fix These Errors I'm Getting In The Console?

Im getting these 2 errors in my console and my application is not working

app.js:38306 [Vue warn]: Cannot find element: #app

------------

app.js:38306 [Vue warn]: Error compiling template:

<div v-model="permissionType">: v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.

286|          <div class="col-md-12">
287|          <div class="row my-3">
288|              <div class="col-md-10" v-model="permissionType">
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^
289|                  <div class="custom-control custom-radio custom-control-inline">
290|                      <input type="radio" id="basic" name="permission_type" class="custom-control-input" value="basic">

(found in <Root>)

my Admin file

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="Laravel SB Admin 2">
    <meta name="author" content="Alejandro RH">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'Laravel') }}</title>
       
    <script src="{{ asset('js/app.js') }}"></script>
   
    <!-- Fonts -->
    <link href="{{ asset('vendor/fontawesome-free/css/all.min.css') }}" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">

    <!-- Styles -->
    <link href="{{ asset('css/sb-admin-2.min.css') }}" rel="stylesheet">
    <link href="{{ asset('css/backApp.css') }}" rel="stylesheet">

    <!-- Favicon -->
    <link href="{{ asset('img/favicon.png') }}" rel="icon" type="image/png">
    
</head>
<body id="page-top">
<div id="app">
.
.
.
.
.
.
.
 <div class="container-fluid">
            
     @yield('main-content')

 </div>
.
.
.
.
.
.

<script src="{{ asset('js/sb-admin-2.min.js') }}"></script>
@yield('js_index_page')
</body>
</html>

create.blade.php

@extends('layouts.admin')

@section('main-content')
    <!-- Page Heading -->
    <h1 class="h3 mb-4 text-gray-800">Create New Permission</h1>
    <hr/>
    @if (session('message'))
    <div class="alert alert-success border-left-success alert-dismissible fade show" role="alert">
        {{ session('message') }}
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
    @endif
    <div class="row justify-content-center">
        <div class="col-md-12">
        <div class="row my-3">
            <div class="col-md-10" v-model="permissionType">
                <div class="custom-control custom-radio custom-control-inline">
                    <input type="radio" id="basic" name="permission_type" class="custom-control-input" 
                    value="basic" />
                    <label class="custom-control-label font-weight-bold" for="basic">Simple Permission</label>
                </div>
                <div class="custom-control custom-radio custom-control-inline">
                    <input type="radio" id="crud" name="permission_type" class="custom-control-input" 
                    value="crud" />
                    <label class="custom-control-label font-weight-bold" for="crud">Advance Permission</label>
                </div>
            </div>
        </div>
            <div class="card shadow mb-4">
                <div class="card-body">
                    <h4 class="font-weight-bold">Permission Details:</h4>
                 <hr>
                <form method="POST" action="{{ route('roles.store')}}">
                    @csrf
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group" v-if="permissionType =='basic'">
                                <label for="name" class="font-weight-bold">Name</label>
                                <input type="text" name="name" class="form-control @error('name') is-invalid @enderror" id="name" value="{{ old('name') }}" required>
                                @error('name')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class="form-group" v-if="permissionType =='basic'">
                                <label for="name" class="font-weight-bold">Slug</label>
                                <input type="text" name="slug" class="form-control @error('slug') is-invalid @enderror" id="slug" value="{{ old('slug') }}" required disabled>
                                @error('slug')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class="form-group" v-if="permissionType =='basic'">
                                <label for="description" class="font-weight-bold">Description</label>
                                <input type="text" name="description" class="form-control  @error('description') is-invalid @enderror" id="description" value="{{ old('description') }}" required>
                                @error('description')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                    </div>
                </div>
            </div>


            <div class="card shadow mb-4"  v-if="permissionType =='crud'">
                <div class="card-body">
                    <h4 class="font-weight-bold">Permissions:</h4>
                    <div class="row">
                        <div class="col-md-12">
.
.
.
.

            </form>

        </div>

    </div>

@endsection

@section('js_index_page')
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                permissionType: 'basic',
                resource: '',
                crudSelected: ['create', 'read', 'update', 'delete']
            },
            methods: {}
        });
    </script>
@endsection

Ive been trying to fix these error but unsuccessfully... I don't know what am I doing wrong, I'm not farmiliar with vue combined with laravel... The Laravel code is working fine but when I include vue I get the above 2 errors

Oct
18
1 week ago
Activity icon

Replied to How Do I Match Users Permission With All The Permissions In The Database

Thanks... Its working... I'm using laratrust 5.2 by the way

Activity icon

Replied to How Do I Match Users Permission With All The Permissions In The Database

Thanks... but still doesn't check the values, maybe there is something wrong in my edit.blade.php

Activity icon

Started a new Conversation How Do I Match Users Permission With All The Permissions In The Database

Hello guys, I'm trying to get the user role with permissions and compare them with all permissions that are in the database, if they match then a checkbox should be checked

My RoleController

 public function edit($id)
    {
        $role =Role::where('id', $id)->with('permissions')->first();
        $permissions = Permission::all();
        return view('admin.roles.edit', compact('role', 'permissions'));
    }

edit.blade.php

<table class="table">
                            <thead class="thead-dark">
                                <tr>
                                    <th scope="col">TYPE</th>
                                    <th scope="col">CREATE</th>
                                    <th scope="col">VIEW</th>
                                    <th scope="col">UPDATE</th>
                                    <th scope="col">DELETE</th>
                                </tr>
                            </thead>
                            <tbody>
                            @foreach($permissions as $permission)
                                <tr>
                                    <td>
                                        <div class="custom-control custom-checkbox ml-3">
                                            <input type="checkbox" class="custom-control-input" id="{{ $permission->name }}" value="{{ ($permission->name) }}" {{ ($permission->name == "$role->permissions->name") ? "checked" : "" }}>
                                            <label class="custom-control-label" for="{{ $permission->name }}">{{ $permission->display_name }}</label>
                                        </div>
                                    </td>
                                </tr>
                            @endforeach
                            </tbody>
                         </table>

I'm not getting any errors but I cant make the checkbox to be checked if they match

Oct
15
1 week ago
Activity icon

Started a new Conversation Syntax Error, Unexpected End Of File (View: C:\xampp\htdocs\Kwakhanya-Centre\resources\views\admin\users\create.blade.php)

AdminController

  public function create()
    {
        $roles = Role::all();
        
        return view('admin.users.create', compact('roles'));
    }

create.blade.php

<div class="row my-2">
                            <div class="col-md-2 font-weight-bold pt-2">Role:</div>
                            <div class="col-md-10">
                                <div class="form-group">
                                    <select id="role" name="role" class="form-control @error('role') is-invalid @enderror" value="{{ old('role') }}">
                                        <option value="">Choose user role...</option>
                                        @foreach($roles as $role)
                                            <option value="$role->name" {{ old('role')=='$role->name' ? 'selected' : '' }}>{{ $role->display_name }}</option>
                                        $endforeach
                                    </select>
                                    @error('role')
                                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                                    @enderror
                                </div>
                            </div>
                        </div>

why am I getting this Error

Oct
14
2 weeks ago
Activity icon

Started a new Conversation How To Redirect To A Dynamic Route After User Register For The First Time In Laravel 7

Hi... I am new to Laravel and using Laravel 7, I want to ask that, when a new user register for the first time a verification email is sent to his/her inbox and when he verifies it, must be redirected to a route like the edit profile page to complete the registration process... something like:

route('user/ . $user->id . / edit');

Im not sure if I should edit this page, if so how? because it redirects to the HOME

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\VerifiesEmails;

class VerificationController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Email Verification Controller
    |--------------------------------------------------------------------------
    |
    | This controller is responsible for handling email verification for any
    | user that recently registered with the application. Emails may also
    | be re-sent if the user didn't receive the original email message.
    |
    */

    use VerifiesEmails;

    /**
     * Where to redirect users after verification.
     *
     * @var string
     */
    protected $redirectTo = RouteServiceProvider::HOME;

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
        $this->middleware('signed')->only('verify');
        $this->middleware('throttle:6,1')->only('verify', 'resend');
    }
}
Oct
12
2 weeks ago
Activity icon

Started a new Conversation My Store Method Is Not Working Properly

Hi Im having a problem with my store method, its not storing everything in the database

AdminController

public function store(Request $request)
    {  
        $this->validate($request,[
            'type' => 'required',
            'last_name' => 'required',
            'name' => 'required',
            'email' => 'required|email|unique:users',
            'phone' => 'required|unique:users',
            'gender' => 'required',
            'identity' => 'required',
            'password' => 'required|string|min:8|confirmed',
            'street' => 'required',
            'suburb' => 'required',
            'city' => 'required',            
            'province' => 'required|not_in:0',
            'code' => 'required',
            'school' => 'required',
            'grade' => 'required|not_in:0',
            'subjects' => 'required'
        ]);
        
        $user = User::create([
            'type' => $request['type'],
            'last_name' => $request['last_name'],
            'name' => $request['name'],
            'email' => $request['email'],
            'phone' => $request['phone'],
            'password' => Hash::make($request['password']),
            'gender' => $request['gender'],
            'identity' => $request['identity'],
            'street' => $request['street'],
            'suburb' => $request['suburb'],
            'city' => $request['city'],
            'province' => $request['province'],
            'code' => $request['code'],
            'school' => $request['school'],
            'grade' => $request['grade'],
            'subjects' => $request['subjects']
        ]);
        // dd($user);
        if($request['type'] == 'Learner'){
            $user->attachRole('learner');
        }
        elseif($request['type'] == 'Guardian'){
            $user->attachRole('guardian');
        }
        elseif($request['type'] == 'Teacher'){
            $user->attachRole('teacher');
        }

        return redirect()->back()->with('message','The user has been created successfully');
    }

its saving like half of the requested data... from type to password is saving but from gender to subjecs it does not save the data to the database

Here is the Migration file

public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('last_name');
            $table->string('email')->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password');
            $table->string('phone')->unique()->nullable();
            $table->string('type')->nullable();
            $table->string('avatar')->default('default.jpg');
            $table->string('gender')->nullable();
            $table->string('identity')->nullable();
            $table->string('street')->nullable();
            $table->string('suburb')->nullable();
            $table->string('city')->nullable();
            $table->string('province')->nullable();
            $table->integer('code')->nullable();
            $table->string('school')->nullable();
            $table->string('grade')->nullable();
            $table->string('subjects')->nullable();
            $table->rememberToken();
            $table->timestamps();
        });
    }

what am I doing wrong?

Oct
06
3 weeks ago
Activity icon

Replied to How To Extract Checkbox Values From The Database To Be Updated In View

Yes I noticed that but still it shows this error:

Invalid argument supplied for foreach() (View: C:\xampp\htdocs\laravel-sb\resources\views\backend\user\show\learner.blade.php)

Activity icon

Started a new Conversation How To Extract Checkbox Values From The Database To Be Updated In View

I am trying to update the checkbox values stored in the database but I can't get them to the update view form

Here is my update method in UserController

 public function update(Request $request, $id)
    {
        $this->validate($request,[
            'email' => 'email',
            'phone' => 'min:10|max:15',
            'gender' => 'required',
            'identity' => 'required',
            'password' => 'string|min:8|confirmed',
            'street' => 'required',
            'suburb' => 'required',
            'city' => 'required',            
            'province' => 'required|not_in:0',
            'code' => 'required',
            'school' => 'required',
            'grade' => 'required|not_in:0',
            'subjects' => 'required'
        ]);
    
        $user = User::find($id);
        
        $user->update($request->all());

           if($user->types == 'Learner'){
            $learner = Learner::where('user_id', $id)->first();
            $learner->gender = $request->input('gender');
            $learner->identity = $request->input('identity');
            $learner->street = $request->input('street');
            $learner->suburb = $request->input('suburb');
            $learner->city = $request->input('city');
            $learner->province = $request->input('province');
            $learner->code = $request->input('code');
            $learner->school = $request->input('school');
            $learner->grade = $request->input('grade');
            $learner->subjects = $request->input('subjects');            
            $learner->save();
            return redirect()->back()->with('message', 'User Updated Successfully');
           }

My Learner Model

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
// use App\User;

class Learner extends Model //class Learner extends User
{
    protected $guarded = [];
    protected $table = "learners";
    protected $casts = [
        'subjects' => 'array',
    ];
    public function user()
    {
        return $this->belongsTo('App\User');
    }

    public function setSubjects($value)
    {
        $this->attributes['subjects'] = json_encode($value);
    }

    public function getSubjects($value)
    {
        return $this->attributes['subjects'] = json_decode($value);
    }
}

edit.blade.php

<div class="col-md-2 font-weight-bold pt-2">Subjects:</div>
                            <div class="col-md-10">                            
                                <div class="form-group">
                                    <div class="custom-control custom-checkbox mt-2">
                                        <input type="checkbox" class="custom-control-input @error('subjects') is-invalid @enderror" id="Mathematics" name="subjects[]" value="Mathematics" @foreach($user as $subject) {{ ($user->learner->subjects=='Mathematics') ? 'checked' : '' }} @endforeach/>
                                        <label class="custom-control-label" for="Mathematics">Mathematics</label>
                                    </div>
                                    <div class="custom-control custom-checkbox mt-2">
                                        <input type="checkbox" class="custom-control-input @error('subjects') is-invalid @enderror" id="Physical Science" name="subjects[]" value="Physical Science" {{ ($user->learner->subjects=='Physical Science')? 'checked' : '' }}/>
                                        <label class="custom-control-label" for="Physical Science">Physical Science</label>
                                    </div>
                                    <div class="custom-control custom-checkbox mt-2">
                                        <input type="checkbox" class="custom-control-input @error('subjects') is-invalid @enderror" id="Accounting" name="subjects[]" value="Accounting" {{ ($user->learner->subjects=='Accounting')? 'checked' : '' }}/>
                                        <label class="custom-control-label" for="Accounting">Accounting</label>
                                    </div>
                                    <div class="custom-control custom-checkbox mt-2">
                                        <input type="checkbox" class="custom-control-input @error('subjects') is-invalid @enderror" id="Life Science" name="subjects[]" value="Life Science" {{ ($user->learner->subjects=='Life Science')? 'checked' : '' }}/>
                                        <label class="custom-control-label" for="Life Science">Life Science</label>
                                    </div>
                                    <div class="custom-control custom-checkbox mt-2">
                                        <input type="checkbox" class="custom-control-input @error('subjects') is-invalid @enderror" id="Geography" name="subjects[]" value="Geography" {{ ($user->learner->subjects=='Geography')? 'checked' : '' }}/>
                                        <label class="custom-control-label" for="Geography">Geography</label>
                                    </div>
                                @error('subjects')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                                </div>
                            </div>

and when I try to loop the values in the show method it gives an error

show.blade.php

<tr>
        <th scope="row">Subjects</th>
               <td> 
                      @foreach($user->subjects as subject)                                  
                            {{ subjects }}
                       @endforeach
              </td>
</tr>                                	

and in my database the checkbox values are stored stored like this:

subjects: ["Mathematics","Physical Science","Accounting"]
Oct
05
3 weeks ago
Activity icon

Replied to How To Display An Error Message Of A Select Field In Laravel

Very Good... Thanks

Now How do you store Checkbox values in a database Table? and how do you retrieve them if you want to update certain values?

Activity icon

Replied to How To Display An Error Message Of A Select Field In Laravel

Very Good... Thanks

Now How do you store Checkbox values in a database Table? and how do you retrieve them if you want to update certain values?

Activity icon

Started a new Conversation How To Display An Error Message Of A Select Field In Laravel

I was trying to validate a form, but it seems that I cant show the error message for the dropdown field.

here is my updade.blade.php

<div class="form-group">
<select id="province" name="province" class="form-control @error('province') is-invalid @enderror" >
                                        <option>Choose...</option>
                                        <option value="Western Cape" {{ ($user->learner->province == "Western Cape") ? 'selected' : ''}}>Western Cape</option>
                                        <option value="Northern Cape" {{ ($user->learner->province == "Northern Cape") ? 'selected' : '' }}>Northern Cape</option>
                                        <option value="Eastern Cape" {{ ($user->learner->province == "Eastern Cape") ? 'selected' : '' }}>Eastern Cape</option>
                                        <option value="North West" {{ ($user->learner->province == "North West") ? 'selected' : '' }}>North West</option>
                                        <option value="Free State" {{ ($user->learner->province == "Free State") ? 'selected' : '' }}> Free State</option>
                                        <option value="Kwazulu Natal" {{ ($user->learner->province == "Kwazulu Natal") ? 'selected' : '' }}>Kwazulu Natal</option>
                                        <option value="Gauteng" {{ ($user->learner->province == "Gauteng") ? 'selected' : '' }}>Gauteng</option>
                                        <option value="Limpopo" {{ ($user->learner->province == "Limpopo") ? 'selected' : '' }}>Limpopo</option>
                                        <option value="Mpumalanga" {{ ($user->learner->province == "Mpumalanga") ? 'selected' : '' }}>Mpumalanga</option>
                                    </select>
                                    @error('province')
                                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                                    @enderror
                                </div>

and here is the update method from the UserController

public function update(Request $request, $id)
    {
        $this->validate($request,[
            'email' => 'email',
            'phone' => 'min:10|max:15',
            'gender' => 'required',
            'identity' => 'required',
            'password' => 'string|min:8|confirmed',
            'street' => 'required',
            'suburb' => 'required',
            'city' => 'required',            
            'province' => 'required|not_in:0',
            'code' => 'required',
            'school' => 'required',
            'grade' => 'required|not_in:0'
        ]);
    
        $user = User::find($id);
        $user->update($request->all());

           if($user->types == 'Learner'){
            $learner = Learner::where('user_id',$id)->first();
            $learner->gender = $request->input('gender');
            $learner->identity = $request->input('identity');
            $learner->street = $request->input('street');
            $learner->suburb = $request->input('suburb');
            $learner->city = $request->input('city');
            $learner->province = $request->input('province');
            $learner->code = $request->input('code');
            $learner->school = $request->input('school');
            $learner->grade = $request->input('grade');
            $learner->save();
            return redirect()->back()->with('message','User Updated Successfully');
           }
}

I want the error message to be displayed at the bottom of the select field and the field to have a red border around... Its working fine for other input fields but the problem is the select field...

Oct
02
3 weeks ago
Activity icon

Replied to How To Get A Single User

Yes... but I keep on getting the wrong Id, but everything else is correct

Activity icon

Started a new Conversation How To Get A Single User

I have 3 tables, i.e. User, Learner and Teacher tables joined together

User table

 Schema::create('users', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('last_name');
            $table->string('email')->unique()->nullable();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('phone')->unique()->nullable();
            $table->string('types');
            $table->string('avatar')->default('default.jpg');
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();
        });

Learner Table

Schema::create('learners', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('user_id');
            $table->string('gender')->nullable();
            $table->string('identity')->nullable();
            $table->string('school')->nullable();
            $table->string('grade')->nullable();
            $table->string('subjects')->nullable();
            $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
            $table->timestamps();
        });

Teacher Table

Schema::create('teachers', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('user_id');
            $table->string('gender')->nullable();
            $table->string('identity')->nullable();
            $table->string('classes')->nullable();
            $table->string('suburb')->nullable();
            $table->string('city')->nullable();
            $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
            $table->timestamps();
        });

and here is my Show method in the UserController

   public function show($id)
    {
        $userId = User::find($id);

        if($userId->types == 'Learner')
        {
            $user = DB::table('users')
            ->join('learners', 'users.id', '=', 'learners.user_id')
            ->select('users.*', 'learners.*')
            ->where('users.id', '=', $id)
            ->first();
            return view('backend.user.show.learner', compact('user'));
            
        } 
        else {
            $user = DB::table('users')
            ->join('teachers', 'users.id', '=', 'teachers.user_id')
            ->select('users.*', 'teachers.*')
            ->where('users.id', '=', $id)
            ->first();
            return view('backend.user.show.teacher', compact('user'));
        }
        
    }

why am I getting the wrong Id but other information is correct?... what am I doing wrong?

{#1280 ▼
  +"id": 2
  +"name": "Bhubhu"
  +"last_name": "Bali"
  +"email": "[email protected]mail.com"
  +"email_verified_at": null
  +"phone": "1234566677"
  +"types": "Learner"
  +"avatar": "default.jpg"
  +"password": "y$n4ykqDKXcVTVVw9NaThd8uHuZISEltOwSN5IzIqqJ8dOOk90nQape"
  +"remember_token": null
  +"created_at": "2020-10-01 17:06:24"
  +"updated_at": "2020-10-01 17:06:24"
  +"user_id": 3
  +"gender": null
  +"identity": null
  +"street": null
  +"suburb": null
  +"city": null
  +"province": null
  +"code": null
  +"school": null
  +"grade": null
  +"subjects": null
}

the id: 2 but user_id: 3... and when I run the edit method it brings the information of id 2

Sep
30
4 weeks ago
Activity icon

Started a new Conversation Registering A User Using Email Or Mobile Number In The Same Field

Hi

I have a question, I want to modify the default registration form, so a user can register using an email or mobile number in the same field.

In the Register controller how will I check and validate if the user has entered an email or a mobile number?

In the database do I have to make two columns (i.e. email and mobile) or just one column?

Sep
26
1 month ago
Activity icon

Replied to Undefined Variable: User

Ahh I see now, It works...Thank you Man!

Activity icon

Replied to Undefined Variable: User

The Edit method from UserController

  public function edit($id)
    {
        $users = DB::table('users')->join('learners', 'users.id','learners.user_id')->get();
        
        return view('backend.user.edit', compact('users'));
    }

The Blade file edit.blade.php

@extends('layouts.admin')

@section('main-content')
    <!-- Page Heading -->
    <h1 class="h3 mb-4 text-gray-800">{{ __('Edit User') }}</h1>
    <hr/>
    @if (session('message'))
    <div class="alert alert-success border-left-success alert-dismissible fade show" role="alert">
        {{ session('message') }}
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
    @endif
    <form method="POST" action="{{ route('users.update', $user->id) }}">
        @csrf
        @method('PATCH')
        @foreach($users as $user)
        {{ $user->id}}
        <div class="row">
            <div class="col-md-9">
                <div class="card shadow mb-4 px-4 pb-4">
                    <div class="card-header py-3 px-0">
                        <h6 class="m-0 font-weight-bold text-primary">User Information</h6>
                    </div>
                        <div class="row my-3">
                            <div class="col-md-2 font-weight-bold">Type:</div>
                            <div class="col-md-10">
                                <div class="custom-control custom-radio custom-control-inline">
                                    <input type="radio" id="learner" name="types" class="custom-control-input" value="Learner" {{ ($user->types=="Learner")? "checked" : "" }} />
                                    <label class="custom-control-label" for="learner">Learner</label>
                                </div>
                                <div class="custom-control custom-radio custom-control-inline">
                                    <input type="radio" id="parent" name="types" class="custom-control-input" value="Parent" {{ ($user->types=="Parent")? "checked" : "" }} />
                                    <label class="custom-control-label" for="parent">Parent</label>
                                </div>
                                <div class="custom-control custom-radio custom-control-inline">
                                    <input type="radio" id="teacher" name="types" class="custom-control-input" value="Teacher" {{ ($user->types=="Teacher")? "checked" : "" }}/>
                                    <label class="custom-control-label" for="teacher">Teacher</label>
                                </div>
                            </div>
                        </div>
                        <div class="row my-2">
                            <div class="col-md-2 font-weight-bold pt-2">Surname:</div>
                            <div class="col-md-10">
                                <input  type="text" id="last_name" name="last_name" class="form-control @error('last_name') is-invalid @enderror" value="{{ $user->last_name }}">
                                @error('last_name')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        
Sep
25
1 month ago
Activity icon

Started a new Conversation Undefined Variable: User

Undefined variable: user (View: C:\xampp\htdocs\laravel-sb\resources\views\backend\user\edit.blade.php)

Activity icon

Replied to How To Use Old() Function With Radio Button

Works Perfect...Thanks Man