Giter VIP home page Giter VIP logo

docs's People

Contributors

amaelftah avatar boostudio avatar charlton-a avatar clsource avatar djwoms avatar dyspop avatar eaguad1337 avatar erhuabushuo avatar girardinsamuel avatar gitbook-bot avatar hungrybluedev avatar josephmancuso avatar kentaro0919 avatar kharysharpe avatar lazyguru avatar leyluj avatar marlysson avatar mitchdennett avatar nioperas06 avatar normal-coder avatar olivsinz avatar os-nikita avatar qqpann avatar resmo avatar rfschubert avatar shuntakeuch1 avatar simphiwehlabisa avatar tpow avatar tthebst avatar vaibhavmule avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Any example for API with Authorization?

Is your feature request related to a problem?

Any example for API with Authorization? Mostly example is too old to run.

What do we currently have to do now?

No response

Describe the solution you'd like

Can Add example with api or vue example for newest release?

Describe alternatives you've considered

No response

Would this be a breaking change ?

  • Yes

Anything else ?

No response

Removing gitbook tags from README.md

I would like to remove git book tags from README.md such as( {% code-tabs %} {% code-tabs-item title="terminal" %} ) because they don't render in markdown.

Fix view documentation about line statements

in docs, we should probably demonstrate what the elif block should look like with a condition…
Screenshot 2019-08-04 at 18 56 32

perhaps an easy first PR for someone

https://docs.masoniteproject.com/the-basics/views#if-statement

related: i find it a confusing message to show both jinja2 syntax and “@” syntax for templates

I think we should stick to one and promote it alone

related: i think it’s strange that the trailing : is optional and seldom demonstrated in docs. almost like it shouldn’t be demonstrated at all or it should be enforced by the parser.

e.g

@if expression:
# is the same as 
@if expression

https://docs.masoniteproject.com/the-basics/views#if-statement

Missing Resource routes names parameter

I was reading Masonite source code and just found something not mention in the doc.

It is possible to name the routes created by Resource route.

We need to add a dic names parameters in this format {'action':'route name'}

Here are the syntax:

Resource('contacts', 'ContactsController', names={'index': 'contacts.index'})

We can do that for all the 7 actions

Resource('contacts', 'ContactsController', names={
'index': 'contacts.index',
'show': 'contacts.show',
'create': 'contacts.create'
'store': 'contacts.store',
'edit': 'contacts.edit',
'update': 'contacts.update',
'destroy': 'contacts.destroy'
}),

Wrong links in 3.0 upgrade and what's new

The What's New document links back to itself for the "Upgrade Guide" and the Masonite 2.3 to 3.0 upgrade guide links back to itself for "What's New". These links should be swapped.

Environment documentation

Masonite 4.0 docs does not have an entry on its approach to Environment, which 3.0 has. Might be good to highlight this to promote DRY, reduce boilerplate code, and be consistent with Masonite approach.

Improve `cache` doc

  • add all available drivers
  • explain how to install each of them (dependencies)

Create a better connection between static files and compiling assets docs

Currently the compiling assets link in the side nav is way down near the bottom. I would have expected it to come right after the static files link at the top in the basics section.

Or alternatively link from the static files page to compiling assets page some way. Just so there is a flow from one to the other as they are very related.

Add configuration docs

  • config files philosophy
  • config helper to get values (nested works !)
  • config facade
  • advanced:
    • edit config in test

Add new file validation rules

validate.file('doc') # check if valid file

validate.file('doc', 1024) # check valid file and max size is 1 Kilobyte (1024 bytes)
validate.file('doc', '1K') # check valid file and max size 1 Kilobyte (1024 bytes)
validate.file('doc', '1k') # check valid file and max size 1 Kilobyte (1024 bytes)
validate.file('doc', '1KB') # check valid file and max size 1 Kilobyte (1024 bytes)
validate.file('doc', '15M') # check valid file and max size 15 Megabytes
validate.file('doc', mimes=['jpg', 'png', 'gif', 'tiff']) # check valid file and of one of those types
validate.image('doc') # check valid image
validate.video('doc') # check valid video
validate.image('doc', size="2MB") # check valid image and size !

Add info on how to print the JSON response whilst debugging

From Slack:

Allan Cochrane 6:38 PM
I'm trying to test the response from a JSON endpoint served by masonite-api, how can I dump the JSON in my test?

Joseph Mancuso 6:40 PM
Use the .container.make(‘Response’)
After your json call inside your test
That will get it as a string

Add warning for soft deletes mixin use

I added a warning few weeks ago to explain that when using SoftDeletesScope on a model, you should still define a column "deleted_at" on your model (it's not automatically done). I can't find this warning anymore ? has been removed ?

I would like to add it again, and give an example. We should use datetime field and not timestamp (some people might be mistaken, I made the error myself 🙄 and the list of users was always empty as all users are then created with a deleted_at field not null).

Example of setting the column related to the SoftDeletesScope on the User model:

# user migration
table.datetime("deleted_at").nullable()

Make deployment docs part of the documentation

Currently, How-To guides section has links to external sources.

It has deployment documents for

Now there is deployment documentation that would work with any VPS like DigitalOcean and/or Vultr

It would make sense to create deployment section in the docs and make these three docs part of official documentation. It will help keep them up to date as well.

Missing color highlighting for diff

Midway down the Masonite 2.3 to 3.0 upgrade page it says:

"If the changes in green already exist then your project is correct. If you have the code in red then make this diff change:" My browser doesn't display green or red; only strike-through text and (dotted) underlined.

I suspect CSS styles are missing on the documentation site.

How to solve the Masonite timed task

Hello, I have a need to create timed tasks and dynamically execute them in the framework of Masonite. How to solve these problems? Thank you!

Documentation: RESTRICT option missing from Foreign Key docs

Describe the bug
Masonite ORM supports specifying restrict when defining foreign key relationships, however the option is not mentioned in the docs - only cascade and set null are shown.

For example, this works fine:

table.foreign('creator_id', name='fk_scenarios_creator_id'). \
                references('id').on('users').on_update('cascade').on_delete('restrict')

https://orm.masoniteproject.com/schema-and-migrations#foreign-keys

Would be good to have it added.

[ORM] Schema and Migrations section order in docs

Reading the docs of Orm part in Masonite docs I'm a bit confused when the way of uses Model came first than Schema and Migrations ( necessary for creating the tables for uses of Models )

Should'nt they came first than QueryBuilder section?

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.