Giter Club home page Giter Club logo

invention-framework's Introduction

We support and encourage the development of free and open source software projects.

invention-framework's People

Contributors

smalldev2 avatar virtual-designer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

invention-framework's Issues

Can't get a Model as a parameter in controller methods

I'd like to get App\Models\Post model in my controller like this:

<?php

namespace App\Http\Controllers;

use OSN\Framework\Core\Controller;
use App\Models\Post;

class PostController extends Controller
{
      public function edit(Post $post)
      {
             //...
      }
}

But it doesn't seem to be working. This feature can make our code much easier to understand and reduce the lines.

So, this feature should be implemented soon.

EDIT:
The new requested feature is actually Route-Model binding.

Cannot create an index using the Blueprint object

In this case I would like to create a column 'username' with an index in a table of my DB like this:

Schema::create('users', function (Blueprint $table) {
      $table->id();
      $table->string("username")->index();
});

But it has no support yet for creating an index. Also, there is no way to run custom sql queries.

These features should be added.

Improve CSRF token generation

At the moment the framework only supports one CSRF token at a time. But we need to add support for multiple tokens.

Collection::search() returns a string instead of int

$collection = collection([
     "string0",
      204745
]);

dd($collection->search('/0/'));

The above code prints:

array(2) {
  [0]=>
  string(7) "string0"
  [1]=>
  string(6) "204745"
}

But it should print:

array(2) {
  [0]=>
  string(7) "string0"
  [1]=>
  int(204745)
}

Add `FormRequest` class

FormRequest class can be added so that we can write more complex and enhanced validation rules, easily.

Add new PP directive `:markdown:`

Adding a :markdown: directive will make PP more cool. After that we should be able to parse markdown like this:

:extends('layouts.app'):

:section('main'):
:markdown:
# Heading

Paragraph.

- List item 1
- List Item 2
:endmarkdown:
:endsection:

Upgrade ORM

Fully upgrade the ORM and make it more stable and dynamic.

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.