Comments (3)
@vmiguellima Does your posts
table have a user_id
? And an user()
relation?
from folio.
@nunomaduro The relation exists and it works correctly. Just tried again, and for example I'm able to access using the following paths:
/users/1/posts/1/index
(resources/views/pages/users/[User]/posts/[Post]/index.blade.php)/users/1/posts/1/view
(resources/views/pages/users/[User]/posts/[Post]/view.blade.php)/users/1/posts/1/index
(resources/views/pages/users/[.App.Models.User]/posts/[App.Models.Post]/index.blade.php)/users/1/posts/1/view
(resources/views/pages/users/[.App.Models.User]/posts/[.App.Models.Post]/view.blade.php)
But through the use of the index
balde is expected to access via:
/users/1/posts/1
The problem is not related with namespaces, but with index
blade file, when deeply nested.
from folio.
I'm experiencing the same issue, I have Folio directory structure like this:
resources/views/pages/
- [year]/
- index.blade.php
- [month]/
- index.blade.php
- [date]/
- index.blade.php
- [Article:slug].blade.php
When I access /2023
, I get a 404.
When I access /2023/09
, I get a 404.
When I access /2023/09/08
, I get a 404.
If I access /2023/09/06/it-works
, I get the page loaded with $year
, $month
, $date
populated and the Article is found successfully by it's slug.
It seems to be an issue resolving the index in those routes from variable part.
When I run artisan folio:list
, all the routes show as expected
from folio.
Related Issues (20)
- The shared variable in the `render` function can not be accessed between `@php` and `@endphp` directives HOT 1
- Default route name HOT 1
- Create paths automatically when not exists HOT 2
- Support for Other HTTP Methods HOT 8
- Folio should work with other template engines (like Twig) HOT 1
- name route function is not working in folio HOT 1
- Nested model route binding disables views HOT 3
- Nested model route binding keeps disabling views HOT 3
- Empty segments in multi-segment wildcard views are not possible HOT 1
- Wildcard route collision HOT 6
- Route model binding connection HOT 5
- Missing URI prefix when calling `php artisan folio:list` HOT 1
- domain() works with only one domain. HOT 5
- Can't generate url route which starts with "/index" HOT 2
- Check if foo.blade.php file_exists for static route before taking /[param] for account? HOT 4
- Add support for dynamic route name HOT 1
- Folio Route Fallback HOT 8
- allow custom route registrar action for volt HOT 2
- Support Fragment directive
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 folio.