Comments (3)
Interesting. But wouldn't this just be passed to laravel new
command. It takes an --auth
option.
from blueprint.
It could, however that wont bring that into the draft file, my thought being that if a user wants to modify the auth before they generate, they are unable to do so without having to write out everything again. Theres also the chances of things being forgotten in the process.
Also, without this function, would the id:users for example work if you are relating to the users model or would this fail as it is unable to reference and change the existing model ?
from blueprint.
I'm not sure I see the need. However, if you want to open a PR that has some kind of --auth
option to generate what Laravel already gives you, I'd be willing to merge it.
Otherwise, draft files are stand-alone. Would be super easy to share a gist of a draft file containing the default auth definition.
from blueprint.
Related Issues (20)
- Model attribute called `cast` is being double-quoted in generated code HOT 2
- Enhanced Syntax and Behavior for `hasOneThrough` and `hasManyThrough` Relationships in Laravel's Eloquent ORM HOT 4
- Natural Keys For relationships HOT 9
- Global package so I can use it like Laravel pint HOT 3
- Add `HasUuids` trait when Model has `id uuid primary` HOT 3
- A colon cannot be used in an unquoted mapping value HOT 1
- String interpolation ${} in PHP8.2 warning HOT 3
- issue with Model Keys and Indexes HOT 3
- Failed Installing on newest Laravel HOT 5
- Change generator methods visibility from "private" to "protected" HOT 2
- belongsToMany Foreign UUID not working. HOT 18
- Add in already on going project HOT 4
- Plural route naming convention as default to match Laravel docs HOT 1
- HasMany function generation: function name has full namespaced model name instead of only model name HOT 2
- Pluralization oddity HOT 5
- [Internal] Improve "Demo" Workflow
- request to add indexes example on the docs HOT 1
- Laravel 11 Compatibility HOT 4
- Wrong faker for string column type with max chars HOT 1
- Table name set via meta is not honoured by foreign keys HOT 1
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 blueprint.