Sometimes it bothers me to point out many fields to fill out, especially when the same fields are repeated (and this happens quite often), Collections can come to our aid.
Let's try to consider an example:
namespace App\Orchid\Layouts\Client;
Sometimes it bothers me to point out many fields to fill out, especially when the same fields are repeated (and this happens quite often), Collections can come to our aid.
Let's try to consider an example:
namespace App\Orchid\Layouts\Client;
JSON-RPC 2.0 this is a simple stateless protocol for creating an RPC (Remote Procedure Call) style API. It usually looks as follows:
You have one single endpoint on the server that accepts requests with a body of the form:
{"jsonrpc": "2.0", "method": "post.like", "params": {"post": "12345"}, "id": 1}
And it returns answers of the view:
// module is your angular module | |
module.config(authInterceptorConfig); | |
/* @ngInject*/ | |
function authInterceptorConfig($httpProvider) { | |
$httpProvider.interceptors.push('authInterceptor'); | |
} | |
module.factory('authInterceptor', authInterceptor); |
<?php | |
namespace App; | |
use Illuminate\Contracts\Auth\MustVerifyEmail; | |
use Illuminate\Notifications\Notifiable; | |
use Orchid\Platform\Models\User as Authenticatable; | |
use Orchid\Screen\Fields\InputField; | |
class User extends Authenticatable implements MustVerifyEmail |
<?php | |
declare(strict_types=1); | |
namespace App\Orchid\Layouts\User; | |
use Orchid\Screen\Layouts\Rows; | |
use Orchid\Screen\Fields\InputField; | |
class UserEditLayout extends Rows |
<?php | |
declare(strict_types=1); | |
namespace Orchid\Platform\Traits; | |
use Illuminate\Database\PostgresConnection; | |
trait SimpleSearchTrait | |
{ |
<?php | |
declare(ticks=1); | |
/** | |
* Class Bind | |
*/ | |
class Bind | |
{ | |
/** |
<?php | |
/** | |
* Class DiffXLF | |
*/ | |
class DiffXLF | |
{ | |
/** | |
* @var array | |
*/ |
#!/usr/bin/env bash | |
echo "php-cs-fixer pre commit hook start" | |
PHP_CS_FIXER="vendor/bin/php-cs-fixer" | |
HAS_PHP_CS_FIXER=false | |
if [ -x vendor/bin/php-cs-fixer ]; then | |
HAS_PHP_CS_FIXER=true | |
fi |