Comments (6)
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.
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.
I was missing $this->view
but now attached error
from laravel-admin-starter.
@bpocallaghan my Request not accessible in ValidateRole Middleware. when i try to print $selectedNavigationId the other navigation link printing that
from laravel-admin-starter.
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.
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)
- Feature requests HOT 11
- Suggestion: Change Summernote for Toast.io HOT 2
- Slack HOT 1
- Upgrade to Laravel 5.6 HOT 3
- implement spatie/laravel-permission? HOT 7
- reCAPTCHA dependency HOT 1
- Setup google analytics for site . HOT 1
- Missing Namespace and Use declaration in the Admin/General controller group HOT 4
- Laravel Debugbar is not appearing in the project HOT 2
- Admin CRUD always acts on FAQ Categories HOT 3
- Impersonate Package Still Using App\User HOT 5
- Api problem HOT 3
- how to make localization? HOT 1
- Controller not exist on new setup HOT 4
- How upload pictures in topic?
- Errors: Errors even on installation HOT 1
- Missing migrations HOT 1
- image cannot load HOT 4
- What are the main differences between this and titan HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-admin-starter.