micheal

Experience

880

0 Best Reply Awards

  • Member Since 6 Months Ago
  • 0 Lessons Completed
  • 0 Favorites

26th July, 2018

micheal left a reply on @section => @parent @child And @yield ,@show • 2 months ago

@bobbybouwmann thank you :)

micheal left a reply on @section => @parent @child And @yield ,@show • 2 months ago

@bobbybouwmann I know what you are saying buy take a look this code, i copied from the Laravel site.. it's our layout page

<html>
    <head>
        <title>App Name - @yield('title')</title>
    </head>
    <body>
        @section('sidebar')
            This is the master sidebar.
        @show

        <div class="container">
            @yield('content')
        </div>
    </body>
</html


@extends('layouts.app')

@section('title', 'Page Title')

@section('sidebar')
    @parent

    <p>This is appended to the master sidebar.</p>
@endsection

@section('content')
    <p>This is my body content.</p>
@endsection


micheal started a new conversation @section => @parent @child And @yield ,@show • 2 months ago

i really confused about using section and @yield. we make a @yield in master page and fill it with @section in other page. but why we do create @section in master page .? i hope you guys understand what i m saying (:

10th July, 2018

micheal started a new conversation Reveal Modal With AJAX Content • 3 months ago

Hi everyone.! actually i m very new in ajax.i want to show data in modal with ajax but have no idea what to do.

  ->addColumn('action', function ($trip) {

                $html = '<a href="#" class="btn btn-xs btn-info" id="mymodal" style="background:#7e7d8e; 
                padding-right:10px; padding-left:7px;" onclick="myf('.$trip->id.')">More Details</a>';

this is the function in trip controller:

  public function get(Request $request)
    {
        $data  = Trip::findorfail($request->id);
        return response()->json($data);
    }

this is ajax

  function myf(id) {
            $.ajax({
                type: "POST",
                url: 'ajaxtrip',
                data :

                    {"_token":"{{ csrf_token() }}", "id":id}

                ,
                success: function(data) {
                    console.log(data);
                    window.alert(data.from);
                }

            })
        };
    </script>

23rd June, 2018

micheal left a reply on YajraDatatables • 3 months ago

yes i use php artisan serve. could explain more about not using php artisan serve and if i dont use that , so what should i use.?

micheal left a reply on YajraDatatables • 3 months ago

@yajra sorry for late response. php version = 7 laravel version = 5.2

it's city.index

@extends('layout.default')


@section('content')

    
    {!! $dataTable->table() !!}
@endsection

@push('scripts')

    {!! $dataTable->scripts() !!}


@endpush

micheal left a reply on YajraDatatables • 3 months ago

@yajra i tried with inspect / Network / and response is " Unauthorized. '

micheal left a reply on YajraDatatables • 3 months ago

.env

APP_ENV=local
APP_DEBUG=true
APP_KEY=base64:w8/rAw5yrT5Ehf4V6wgVujmEh8inmuRs7oy4FSlE8uM=
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel-bus-project
DB_USERNAME=root
DB_PASSWORD=

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null


micheal left a reply on YajraDatatables • 3 months ago

CityController


<?php

namespace App\Http\Controllers;

use App\City;
use App\DataTables\CityDataTable;
use Illuminate\Http\Request;

use App\Http\Requests;
use Illuminate\Support\Facades\Auth;
use PHPZen\LaravelRbac\Model\Permission;
use PHPZen\LaravelRbac\Model\Role;

class CityController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function __construct()
    {
        $this->middleware('auth');
    }



    public function index(CityDataTable $dataTable)
    {
        if(!Auth::user()->canDo('city.index'))
            return redirect(url('/'));
        return $dataTable->render('city.index');

    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        if(!Auth::user()->canDo('city.create'))
            return redirect(url('/'));
        return view('city.create');
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        $this->validate($request, [
            'name' => 'required'

        ]);

        City::create($request->all());
        Session()->flash('flash_message', "your City has been created.!");
        return redirect(route('city.index'));
//        return view('city.index');
    }

    /**
     * Display the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function show($id)
    {
        //
    }

    /**
     * Show the form for editing the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function edit($id)
    {
        if(!Auth::user()->canDo('city.edit'))
            return redirect(route('city.index'))->with( Session()->flash('flash_message', "You Are Not Allowed"));

        $city = City::findorfail($id);
        return view('city.edit', compact('city'));
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, $id)
    {
        $this->validate($request, [
            'name' => 'required'

        ]);
        $city = City::findorfail($id);
        $city->update($request->all());
        return redirect(route('city.index'));
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function destroy($id)
    {
        if(!Auth::user()->canDo('city.destroy'))
            return redirect(route('city.index'))->with( Session()->flash('flash_message', "You Are Not Allowed"));

        $fromCity = City::find($id);
        $toCity= City::find($id);
        if( $fromCity->fromTrips()->exists() or $toCity->toTrips()->exists() ){
            Session()->flash('flash_message', 'You must delete the trip first.');
            return redirect(route('trip.index'));
        }
//        if (::where('$bus', '=', Input::get('$'))->exists()) {
//            return 'you cant delete';
//        }

        $fromCity->delete();
        Session()->flash('flash_message', 'Successfully deleted!');
//        Session::flash('bu', 'Successfully deleted!');
        return Redirect(route('city.index'))->with('deleted successfully.!');
    }
}

micheal left a reply on YajraDatatables • 3 months ago

@yajra it's CityDatatables code. it doesn't work until i copy " name" , "id " again. it must be 4 column unless get error.

<?php

namespace App\DataTables;

use App\Bus;
use App\City;
use App\User;
use Yajra\Datatables\Services\DataTable;
//use App\DataTables;

class CityDataTable extends DataTable
{
    /**
     * Display ajax response.
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function ajax()
    {
        return $this->datatables
            ->eloquent($this->query())
            ->addColumn('action', function ($city) {
//                $html .= '';
                $html = '<form method="Post" action="'. route("city.destroy", [$city->id]) .'" class="pull-right delete">'
                    .csrf_field().'
                        <input name="_method" type="hidden" value="DELETE">
                        <a href="city/' . $city->id . '/edit" class="btn btn-xs btn-info">Edit</a>
                        <input class="btn btn-xs btn-warning pull-right" type="submit" value="Delete">

                         </form>';

                return $html;

            })
            ->make(true);


    }

    /**
     * Get the query object to be processed by dataTables.
     *
     * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection
     */
    public function query()
    {
        $query = City::query();

        return $this->applyScopes($query);
    }

    /**
     * Optional method if you want to use html builder.
     *
     * @return \Yajra\Datatables\Html\Builder
     */
    public function html()
    {
        return $this->builder()
            ->columns($this->getColumns())
            ->parameters([
                'order' => [['0', 'desc']],
                'stateSave' => 'true',
                'dom'     => 'lBrftip',
                'buttons' => [
                    'buttons' => [
                        [ 'extend' => 'reload', 'className' => 'btn btn-default btn-xs', 'text' => trans('general.reload') ],
                        [ 'extend'=> 'excel', 'className'=> 'btn btn-default btn-xs', 'text' => trans('general.excel') ]
                    ]
                ],

            ])
            ->addAction(['width' => '120px', 'title' => trans('general.actions')]);
    }

    /**
     * Get columns.
     *
     * @return array
     */
    protected function getColumns()
    {
        return [

            'id',
            'name'


        ];

    }

    /**
     * Get filename for export.
     *
     * @return string
     */
    protected function filename()
    {
        return 'Citydatatables_' . time();
    }
}



20th June, 2018

micheal left a reply on YajraDatatables • 4 months ago

19th June, 2018

micheal left a reply on YajraDatatables • 4 months ago

);

micheal started a new conversation YajraDatatables • 4 months ago

Yajra datatable doesnt accept more than 4 columns and return error.it must be 4 columns fixed.not less not more.

the error => DataTables warning: table id=dataTableBuilder - Ajax error. For more information about this error, please see http://datatables.net/tn/7

is there any way to increase the number of columns.?

30th May, 2018

micheal left a reply on I M Using Yajra Datatables And When I Try To Show Data I M Getting This Error =>" DataTables Warning: Table Id=dataTableBuilder - Ajax Error. For More Information About This Error, Please See Http://datatables.net/tn/7 " • 4 months ago

@Snapey i m really sorry about calling him, but i really get stuck and need to figure it out. i don't think it's a controller bug, because the controller is same to other controllers page, and i checked network tab too much and didn't understand what's happening there :). $user is an object from query in this page

29th May, 2018

micheal started a new conversation I M Using Yajra Datatables And When I Try To Show Data I M Getting This Error =>" DataTables Warning: Table Id=dataTableBuilder - Ajax Error. For More Information About This Error, Please See Http://datatables.net/tn/7 " • 4 months ago

this is my UsersDatatable


<?php

namespace App\DataTables;

use App\Bus;
use App\Driver;
use App\User;
use PHPZen\LaravelRbac\Model\Role;
use Yajra\Datatables\Services\DataTable;

class UsersDataTable extends DataTable
{
    /**
     * Display ajax response.
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function ajax()
    {
        return $this->datatables
            ->eloquent($this->query())
            ->addColumn('action', function ($user) {
//                $html .= '';
                $html = '<form method="Post" action="' . route("user.destroy", [$user->id]) . '" class="pull-right delete">'
                    . csrf_field() . '
                        <input name="_method" type="hidden" value="DELETE">
                        <a href="bus/' . $user->id . '/edit" class="btn btn-xs btn-info">Edit</a>
                        <input class="btn btn-xs btn-warning pull-right" type="submit" value="Delete">

                         </form>';

                return $html;

            })
            ->make(true);
    }

    /**
     * Get the query object to be processed by dataTables.
     *
     * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection
     */
    public function query()
    {
        $query = User::query();

        return $this->applyScopes($query);
    }

    /**
     * Optional method if you want to use html builder.
     *
     * @return \Yajra\Datatables\Html\Builder
     */
    public function html()
    {
        return $this->builder()
                    ->columns($this->getColumns())
                    ->ajax('')
                    ->addAction(['width' => '80px'])
                    ->parameters($this->getBuilderParameters());
    }

    /**
     * Get columns.
     *
     * @return array
     */
    protected function getColumns()
    {
        return [
            'id',
            'name',
            'email'

        ];
    }

    /**
     * Get filename f   or export.
     *
     * @return string
     */
    protected function filename()
    {
        return 'usersdatatables_' . time();
    }
}

20th May, 2018

micheal started a new conversation I Am Now Using Laravel 5.2 And Yajra Datatables Plugin. Everything Work Fine But Delete Doesn't Work. My Url Goes Like This...http://localhost:8000/admin/view/%7B%7B%20route • 5 months ago

this is my UsersDataTable code

<?php

namespace App\DataTables;

use App\Bus;
use App\User;
use Yajra\Datatables\Services\DataTable;
//use App\DataTables;

class UsersDataTable extends DataTable
{
    /**
     * Display ajax response.
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function ajax()
    {
        return $this->datatables
            ->eloquent($this->query())
            ->addColumn('action', function ($bus){
                $html='<a href="bus/'. $bus->id .'/edit" class="btn btn-xs btn-info">Edit</a>';

               $html.= '<form method="Post" action="'.route("bus.destroy", [$bus->id]).'" accept-charset="UTF-8" class="pull-right delete">

                      <input name="_methd" type="hidden" value="DELETE">
                      <input class="btn btn-xs btn-warning pull-right" type="submit" value="Delete">
                        </form>';

                    return $html;


                })
            ->make(true);
    }

    /**
     * Get the query object to be processed by dataTables.
     *
     * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection
     */
    public function query()
    {
        $query = Bus::query();

        return $this->applyScopes($query);
    }

    /**
     * Optional method if you want to use html builder.
     *
     * @return \Yajra\Datatables\Html\Builder
     */
    public function html()
    {
        return $this->builder()
                    ->columns($this->getColumns())
                    ->ajax('')
                    ->addAction(['width' => '80px'])
                    ->parameters($this->getBuilderParameters());
    }

    /**
     * Get columns.
     *
     * @return array
     */
    protected function getColumns()
    {
        return [
            'id',
            'model',
            'plate',
            'capacity'
        ];
    }

    /**
     * Get filename for export.
     *
     * @return string
     */
    protected function filename()
    {
        return 'usersdatatables_' . time();
    }
}

6th May, 2018

micheal left a reply on Try To Install Laravel-datatables => Https://github.com/yajra/laravel-datatables • 5 months ago

@rin4ik it works .php artisan vendor:publish --tag=datatables would you tell me the deffirence between them

micheal left a reply on Try To Install Laravel-datatables => Https://github.com/yajra/laravel-datatables • 5 months ago

@rin4ik it seen when i run -> " php artisan vendor:publish --provider=Yajra\DataTables\DataTablesServiceProvider "

micheal left a reply on Try To Install Laravel-datatables => Https://github.com/yajra/laravel-datatables • 5 months ago

@rin4ik i did what you said, now it say " Nothing to publish for tag []."

micheal left a reply on Try To Install Laravel-datatables => Https://github.com/yajra/laravel-datatables • 5 months ago

composer.json

"require": { "php": ">=5.5.9", "laravel/framework": "5.2.*", "laravelcollective/html": "~5.0", "laravelista/lumen-vendor-publish": "^2.1", "phpzen/laravel-rbac": "^0.2.0", "yajra/laravel-datatables-oracle": "~6.0"

micheal started a new conversation Try To Install Laravel-datatables => Https://github.com/yajra/laravel-datatables • 5 months ago

i have done everything correct.but i got this error

[Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Yajra\DataTables\DataTablesServiceProvider' not found

28th April, 2018

micheal left a reply on I Want To Update And Checking If Exist • 5 months ago

@Vilfago i hope you got the drift of what i m trying to say

micheal left a reply on I Want To Update And Checking If Exist • 5 months ago

@Vilfago i m using https://packagist.org/packages/phpzen/laravel-rbac to set permission for users, and now i want to edit old permission setted by checkbox. but dont show which checkbox has selected already.

micheal left a reply on I Want To Update And Checking If Exist • 5 months ago

@Snapey i didn't want to click that, but it happened , Sorry and thank you by the way

micheal left a reply on I Want To Update And Checking If Exist • 5 months ago

@Snapey yes. i want to checked which checkbox selected by old data

micheal left a reply on I Want To Update And Checking If Exist • 5 months ago

                    <?php $permissions = $role->permissions->pluck('id')->toArray(); ?>

                    @foreach($permission->groupBy('description') as $key => $permn)
                        <tr>
                            <td><b>{{ $key  }}</b></td>
                            @foreach($permn as $per)
                                <td>
                                    <label class="checkbox-inline">
                                    <input type="checkbox" name="permission[]" value="<?php if (in_array( $per->id )): checked ?="" ?>"> {{$per->name}}
                                </label>
                                </td>
                                {{--<td>{{ $per->name }}</td>--}}
                            @endforeach
                        </tr>
                    @endforeach

micheal left a reply on I Want To Update And Checking If Exist • 5 months ago

@Snapyyes i want to checked each checkbox selected or not by old data .

                    @foreach($permission->groupBy('description') as $key => $permn)
                        <tr>
                            <td><b>{{ $key  }}</b></td>
                            @foreach($permn as $per)
                                <td>
                                    <label class="checkbox-inline">
                                  <input type="checkbox" name="permission[]"   value="{{$per->id}}"> {{$per->name}}
                                </label>
                                </td>
                                {{--<td>{{ $per->name }}</td>--}}
                            @endforeach
                        </tr>
                    @endforeach

micheal left a reply on I Want To Update And Checking If Exist • 5 months ago

@Snapey dont be mad at me. i want to use in_array inside of input form but dont know how to use that

micheal left a reply on I Want To Update And Checking If Exist • 5 months ago

Nobody ;(

micheal started a new conversation I Want To Update And Checking If Exist • 5 months ago

                    @foreach($permission->groupBy('description') as $key => $permn)
                        <tr>
                            <td><b>{{ $key  }}</b></td>
                            @foreach($permn as $per)
                                <td>
                                    <label class="checkbox-inline">
                                    <input type="checkbox" name="permission[]"   value="{{$per->id}}"> {{$per->name}}
                                </label>
                                </td>
                                {{--<td>{{ $per->name }}</td>--}}
                            @endforeach
                        </tr>
                    @endforeach

23rd April, 2018

micheal left a reply on Set New Password And Check For Old Password Using Hash Check • 5 months ago

if i put return redirect()->route('user.index'); after validation, it doesnt check the condition and doesnt save

micheal left a reply on Set New Password And Check For Old Password Using Hash Check • 5 months ago

@rin4ik Request {#40 ▼ #json: null #convertedFiles: null #userResolver: Closure {#180 ▶} #routeResolver: Closure {#195 ▶} +attributes: ParameterBag {#42 ▶} +request: ParameterBag {#41 ▼ #parameters: array:7 [▼ "_method" => "PATCH" "_token" => "5GsUqyoKLRq1jpiNjM6cbRWHfWUP5wy232fBkcEH" "name" => "morteza" "email" => "[email protected]" "old_password" => "password" "password" => "testpassword" "confirm-password" => "testpassword" ] } +query: ParameterBag {#48 ▶} +server: ServerBag {#45 ▶} +files: FileBag {#44 ▶} +cookies: ParameterBag {#43 ▶} +headers: HeaderBag {#46 ▶} #content: null #languages: null #charsets: null #encodings: null #acceptableContentTypes: null #pathInfo: "/user/9" #requestUri: "/user/9" #baseUrl: "" #basePath: null #method: "PATCH" #format: null #session: Store {#213 ▶} #locale: null #defaultLocale: "en" }

micheal left a reply on Set New Password And Check For Old Password Using Hash Check • 5 months ago

still nothing happend );

micheal left a reply on Set New Password And Check For Old Password Using Hash Check • 5 months ago

@rin4ik Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8 Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9,fa;q=0.8 Cache-Control: max-age=0 Connection: keep-alive Content-Length: 162 Content-Type: application/x-www-form-urlencoded Cookie: Phpstorm-9a654ba5=564e868c-e111-4df3-832c-1be6c793dd4b; XSRF-TOKEN=eyJpdiI6ImtLT2NCTDlXdkdDdVdWbVg2QzBSR1E9PSIsInZhbHVlIjoiY2lVemU2RlFLTk1KaWVlMHAzbGxXMzJXQXFhOGJJb2FHeEtMSFh0M2xmazhhV3ZqcDQyQTQrODB2eGErcXpIRTF5b1RoXC9BdnJ3eWVLNUIrMnNrUWp3PT0iLCJtYWMiOiJkMTA5MzllZjM0NzZjZmI2MGYyMDc3MDMzMTgwZmNlNTQ3N2YyMTk3YTEzY2UwNDJkNGQwNGE1MTZjZWM1Njk3In0%3D; laravel_session=eyJpdiI6InczN1BpS1BsaTNXRk9ITFBqMnpkXC9RPT0iLCJ2YWx1ZSI6IjBWWjdnVjJXS085dHIzQ0J0RHNzRkFjMUVPNm1vZ2p6WWk0SGs2OEVTWitlVmdcL1IyZTlsNzJlT0FvVVFUMmpqd04xN3FBNUZoZzZOR29KZ0hMWjgwZz09IiwibWFjIjoiNTk5NDZiMTY5ODMzMDQ3MWVlMmQ1YzI2Zjg2MTA1Y2ZmOTY2Zjg5ODhhMTMwZTgwOWIyNTk4NWY4OGM1NWU4MiJ9 DNT: 1 Host: localhost:8000 Origin: http://localhost:8000 Referer: http://localhost:8000/user/9/edit Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

micheal left a reply on Set New Password And Check For Old Password Using Hash Check • 5 months ago

General:Request URL: http://localhost:8000/user/9 Request Method: POST Status Code: 200 OK Remote Address: [::1]:8000 Referrer Policy: no-referrer-when-downgrade

Response Headers:Connection: close Content-type: text/html; charset=UTF-8 Host: localhost:8000 X-Powered-By: PHP/7.0.10

micheal left a reply on Set New Password And Check For Old Password Using Hash Check • 5 months ago

@rin4ik Route::controllers([ 'auth' => 'Auth\AuthController', 'password' => 'Auth\PasswordController', ]);

Route::resource('/', '[email protected]'); Route::resource('/bus', 'BusController'); Route::resource('/city', 'CityController'); Route::resource('/driver', 'DriverController'); Route::resource('/trip', 'TripController'); Route::resource('/role', 'RoleController'); Route::resource('/user', 'UserController');

Route::auth();

Route::get('/home', '[email protected]');

micheal left a reply on Set New Password And Check For Old Password Using Hash Check • 5 months ago

@rin4ik when i submit, nothing happend. there is no error and dont check the condition and dont redirect to user.index

micheal started a new conversation Set New Password And Check For Old Password Using Hash Check • 5 months ago

i dont know why it doesnt work

public function update(Request $request, $id) {

    {
        $this->validate($request, [
            'name' => 'required|min:3|max:13',
            'email' => 'email',
            'old_password' => 'required',
            'password' => 'required|min:6',
            'confirm-password' => 'required_with:password|same:password|min:6'
        ]);
        $data = $request->all();

        $user = User::find(auth()->user()->id);
        if (!Hash::check($data['old_password'], $user->password)) {
            return back()->with('error', 'The specified password does not match the database password');
        } else {
            // write code to update password



            $user->update([
                'name' => $request->name,
                'email' => $request->email,
                'password' => $request->password,
            ]);
            return redirect(route('user.index'));

18th April, 2018

micheal left a reply on Rbac Installing • 6 months ago

micheal left a reply on Rbac Installing • 6 months ago

)':

micheal left a reply on Rbac Installing • 6 months ago

anyone ):

17th April, 2018

micheal started a new conversation Rbac Installing • 6 months ago

when i run php artisan vendor:publish --provider="PHPZen\LaravelRbac\RbacServiceProvider" --force Nothing to publish for tag []. i got Nothing to publish for tag [].

micheal left a reply on I Have Installed Rbac And Now I Want To Uninstall It But I Got This Error • 6 months ago

i said i m running laravel 5.2 already. u @rin4ik dont want to undrestand

micheal left a reply on I Have Installed Rbac And Now I Want To Uninstall It But I Got This Error • 6 months ago

@rin4ik you mean i have to upgrade php to 7.1 to solve error .:?

micheal left a reply on I Have Installed Rbac And Now I Want To Uninstall It But I Got This Error • 6 months ago

@rin4ik yes , i deleted rbac form composer.json and also remove vendor but i got same error.

any suggestion

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.