We support and encourage the development of free and open source software projects.
onesoft-sudo / invention-framework Goto Github PK
View Code? Open in Web Editor NEWThe invention framework.
License: Apache License 2.0
The invention framework.
License: Apache License 2.0
We support and encourage the development of free and open source software projects.
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.
Right now every binding is accessible via App::$app
which can be improved by adding dependencies or 'has a' relationship.
Add support for custom validation error messages in form request classes. Also need support for placeholders.
Need to implement more advanced and flexible validation system.
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.
Need to add more methods to the ORM Query Builder. List:
whereNotIn()
whereNotBetween()
fullJoin()
fullJoinRaw()
selfJoin()
selfJoinRaw()
insertSelect()
selectInto()
selectIntoIn()
At the moment the framework only supports one CSRF token at a time. But we need to add support for multiple tokens.
Extract parsing code into separate methods like directiveIf()
.
Need to add proper docblocks.
Add support of custom validation error messages in FormRequest class.
old()
function is not returning old values correctly.
Need to add the get($key)
and set($key, $value)
to the OSN\Framework\Core\Config
class.
$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)
}
FormRequest
class can be added so that we can write more complex and enhanced validation rules, easily.
Need to add license comments to newly created files.
Update Caching Strategy
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:
Fully upgrade the ORM and make it more stable and dynamic.
Need to implement Policies for Models and PowerParser (and even Controllers).
Need to add support of view component.
Neef to add a few more validatiom rules to the Validator
class. List:
file
maxlen
minlen
unique
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.