Coder Social home page Coder Social logo

Comments (6)

truelogicapp avatar truelogicapp commented on June 22, 2024

Hi @bpocallaghan

Yes i created Controller in app\Http\Controllers\Admin Folder
models in \app\Models
View in resources\views\admin
and added routes in Web.php

but when i run my custom Link then i am getting following Error

"Undefined variable: selectedNavigation (View: C:\xampp\htdocs\udrive2.0\resources\views\admin\partials\info.blade.php)

but if i remove @include('admin.partials.info') then get following Error

"Undefined variable: HTMLDescription (View: C:\xampp\htdocs\udrive2.0\resources\views\layouts\admin.blade.php) (View: C:\xampp\htdocs\udrive2.0\resources\views\l ▶"

I am not getting $selectedNavigationId in ValidateRole Middleware

I am sure missing some step. Please guide me

Thanks!

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on June 22, 2024

Hi @truelogicapp
How does your controller look like.
Or more specifically - how do you return the view response.
As you will notice. All the admin controller extends the AdminController and the functions return the view like return $this->view('path.to.view');
All those 'extra' variables like the selectedNavigation / htmlDescription, etc - will be passed to the view from the parent view() which is in the AdminController actually believe it goes down one more - but not important right now :)

Mind having a looksy there and see if we can narrow it down :)

from laravel-admin-starter.

truelogicapp avatar truelogicapp commented on June 22, 2024

Hi @bpocallaghan

I was missing $this->view

but now attached error

image

from laravel-admin-starter.

truelogicapp avatar truelogicapp commented on June 22, 2024

@bpocallaghan my Request not accessible in ValidateRole Middleware. when i try to print $selectedNavigationId the other navigation link printing that

from laravel-admin-starter.

bpocallaghan avatar bpocallaghan commented on June 22, 2024

If you want - you can add me to skype to help you? "bpocallaghan" - my skype name.

The problem is in TitanAdminController line 217 - can do a dd($this->selectedNavigation); - however that file is under the vendor directory - but should find it doing a search filename.

For some reason its not finding the navigation - just would like to see why it does not find it - have a feeling its usually something to do with the navigation_admin table or app url or something else.

If you want to have a read here / for reference
While waiting for me to respond next Issue #5

from laravel-admin-starter.

truelogicapp avatar truelogicapp commented on June 22, 2024

Hi @bpocallaghan

I did same but in my case when I dd ($configuration) then #connection: null

else in other default controller it showing mysql

I am still not able to access model.

from laravel-admin-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.