diff --git a/composer.json b/composer.json index 66d8a616e92e14ebb763d684a8cdbaba36059605..978860e92362daaa437c10243cce3bac61627442 100755 --- a/composer.json +++ b/composer.json @@ -16,12 +16,14 @@ "laravel/tinker": "^2.0", "league/csv": "^9.7", "orangehill/iseed": "^3.0", + "spatie/laravel-html": "^3.5", "tcg/voyager": "1.6.*", "yajra/laravel-datatables-html": "^10", "yajra/laravel-datatables-oracle": "^10" }, "require-dev": { "barryvdh/laravel-debugbar": "^3.6", + "spatie/laravel-ignition": "^1.0", "mockery/mockery": "^1.0", "nunomaduro/collision": "^6.1", "phpunit/phpunit": "^9.3" diff --git a/composer.lock b/composer.lock index 06681acea2ae027f06324c1ff355e3bc363dae77..0feccf818706792639689f32fa85e91bd5438397 100755 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b33cc3dc50980ceb24a38aa4d2f4474c", + "content-hash": "eb4e5f6691e9edde46a6e6f43be52e14", "packages": [ { "name": "arrilot/laravel-widgets", @@ -3660,6 +3660,84 @@ ], "time": "2024-04-27T21:32:50+00:00" }, + { + "name": "spatie/laravel-html", + "version": "3.5.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-html.git", + "reference": "ead179a8b6802647027486049f5209bd23b610a9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-html/zipball/ead179a8b6802647027486049f5209bd23b610a9", + "reference": "ead179a8b6802647027486049f5209bd23b610a9", + "shasum": "" + }, + "require": { + "illuminate/http": "^9.0|^8.0|^10.0", + "illuminate/support": "^9.0|^8.0|^10.0", + "php": "^8.0" + }, + "require-dev": { + "mockery/mockery": "^1.3", + "orchestra/testbench": "^7.0|^6.23|^8.0", + "pestphp/pest": "^1.22" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Html": "Spatie\\Html\\Facades\\Html" + }, + "providers": [ + "Spatie\\Html\\HtmlServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\Html\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Sebastian De Deyne", + "email": "sebastian@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + }, + { + "name": "Freek Van der Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A fluent html builder", + "homepage": "https://github.com/spatie/laravel-html", + "keywords": [ + "html", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/laravel-html/tree/3.5.0" + }, + "funding": [ + { + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + } + ], + "time": "2024-02-20T15:17:00+00:00" + }, { "name": "symfony/console", "version": "v6.4.17", @@ -8418,6 +8496,311 @@ ], "time": "2020-09-28T06:39:44+00:00" }, + { + "name": "spatie/backtrace", + "version": "1.7.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/backtrace.git", + "reference": "0f2477c520e3729de58e061b8192f161c99f770b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/0f2477c520e3729de58e061b8192f161c99f770b", + "reference": "0f2477c520e3729de58e061b8192f161c99f770b", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8.0" + }, + "require-dev": { + "ext-json": "*", + "laravel/serializable-closure": "^1.3 || ^2.0", + "phpunit/phpunit": "^9.3 || ^11.4.3", + "spatie/phpunit-snapshot-assertions": "^4.2 || ^5.1.6", + "symfony/var-dumper": "^5.1 || ^6.0 || ^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Backtrace\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Freek Van de Herten", + "email": "freek@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "A better backtrace", + "homepage": "https://github.com/spatie/backtrace", + "keywords": [ + "Backtrace", + "spatie" + ], + "support": { + "source": "https://github.com/spatie/backtrace/tree/1.7.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/spatie", + "type": "github" + }, + { + "url": "https://spatie.be/open-source/support-us", + "type": "other" + } + ], + "time": "2024-12-02T13:28:15+00:00" + }, + { + "name": "spatie/flare-client-php", + "version": "1.10.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/flare-client-php.git", + "reference": "140a42b2c5d59ac4ecf8f5b493386a4f2eb28272" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/140a42b2c5d59ac4ecf8f5b493386a4f2eb28272", + "reference": "140a42b2c5d59ac4ecf8f5b493386a4f2eb28272", + "shasum": "" + }, + "require": { + "illuminate/pipeline": "^8.0|^9.0|^10.0|^11.0", + "php": "^8.0", + "spatie/backtrace": "^1.6.1", + "symfony/http-foundation": "^5.2|^6.0|^7.0", + "symfony/mime": "^5.2|^6.0|^7.0", + "symfony/process": "^5.2|^6.0|^7.0", + "symfony/var-dumper": "^5.2|^6.0|^7.0" + }, + "require-dev": { + "dms/phpunit-arraysubset-asserts": "^0.5.0", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/pest-plugin-snapshots": "^1.0|^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\FlareClient\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Send PHP errors to Flare", + "homepage": "https://github.com/spatie/flare-client-php", + "keywords": [ + "exception", + "flare", + "reporting", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/flare-client-php/issues", + "source": "https://github.com/spatie/flare-client-php/tree/1.10.0" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-12-02T14:30:06+00:00" + }, + { + "name": "spatie/ignition", + "version": "1.14.2", + "source": { + "type": "git", + "url": "https://github.com/spatie/ignition.git", + "reference": "5e11c11f675bb5251f061491a493e04a1a571532" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/ignition/zipball/5e11c11f675bb5251f061491a493e04a1a571532", + "reference": "5e11c11f675bb5251f061491a493e04a1a571532", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "php": "^8.0", + "spatie/backtrace": "^1.5.3", + "spatie/flare-client-php": "^1.4.0", + "symfony/console": "^5.4|^6.0|^7.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0" + }, + "require-dev": { + "illuminate/cache": "^9.52|^10.0|^11.0", + "mockery/mockery": "^1.4", + "pestphp/pest": "^1.20|^2.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "psr/simple-cache-implementation": "*", + "symfony/cache": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "simple-cache-implementation": "To cache solutions from OpenAI" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.5.x-dev" + } + }, + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for PHP applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/ignition/issues", + "source": "https://github.com/spatie/ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-05-29T08:10:20+00:00" + }, + { + "name": "spatie/laravel-ignition", + "version": "1.7.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/laravel-ignition.git", + "reference": "b6d5c33cf0b8260d6540572af2d9bcf9182fe5fb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/laravel-ignition/zipball/b6d5c33cf0b8260d6540572af2d9bcf9182fe5fb", + "reference": "b6d5c33cf0b8260d6540572af2d9bcf9182fe5fb", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "illuminate/support": "^8.77|^9.27", + "monolog/monolog": "^2.3", + "php": "^8.0", + "spatie/flare-client-php": "^1.0.1", + "spatie/ignition": "<= 1.14.2", + "symfony/console": "^5.0|^6.0", + "symfony/var-dumper": "^5.0|^6.0" + }, + "require-dev": { + "filp/whoops": "^2.14", + "livewire/livewire": "^2.8|dev-develop", + "mockery/mockery": "^1.4", + "nunomaduro/larastan": "^1.0", + "orchestra/testbench": "^6.23|^7.0", + "pestphp/pest": "^1.20", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "spatie/laravel-ray": "^1.27" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Flare": "Spatie\\LaravelIgnition\\Facades\\Flare" + }, + "providers": [ + "Spatie\\LaravelIgnition\\IgnitionServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Spatie\\LaravelIgnition\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Spatie", + "email": "info@spatie.be", + "role": "Developer" + } + ], + "description": "A beautiful error page for Laravel applications.", + "homepage": "https://flareapp.io/ignition", + "keywords": [ + "error", + "flare", + "laravel", + "page" + ], + "support": { + "docs": "https://flareapp.io/docs/ignition-for-laravel/introduction", + "forum": "https://twitter.com/flareappio", + "issues": "https://github.com/spatie/laravel-ignition/issues", + "source": "https://github.com/spatie/laravel-ignition" + }, + "funding": [ + { + "url": "https://github.com/spatie", + "type": "github" + } + ], + "time": "2024-06-13T07:21:06+00:00" + }, { "name": "theseer/tokenizer", "version": "1.2.3", diff --git a/config/app.php b/config/app.php index c9960cde592486d47266cbf812fc89d5cea81493..f813d11dd7e0d7c0512543f21de377bf6d455c86 100755 --- a/config/app.php +++ b/config/app.php @@ -165,6 +165,7 @@ return [ /* * Package Service Providers... */ + Spatie\Html\HtmlServiceProvider::class, /* * Application Service Providers... @@ -207,6 +208,7 @@ return [ 'File' => Illuminate\Support\Facades\File::class, 'Gate' => Illuminate\Support\Facades\Gate::class, 'Hash' => Illuminate\Support\Facades\Hash::class, + 'Html' => Spatie\Html\Facades\Html::class, 'Lang' => Illuminate\Support\Facades\Lang::class, 'Log' => Illuminate\Support\Facades\Log::class, 'Mail' => Illuminate\Support\Facades\Mail::class, diff --git a/resources/views/blast/welcome.blade.php b/resources/views/blast/welcome.blade.php index c345b118f19943b5c4bfee47abc34a29f758fe17..4e012d92f2703b6d104c0b01aaaff68bacb02c19 100755 --- a/resources/views/blast/welcome.blade.php +++ b/resources/views/blast/welcome.blade.php @@ -13,24 +13,25 @@ @section('content') -{{ Form::open(['route' => 'blast.search', 'method' => 'post']) }} +{{ html()->form('POST')->route('blast.search')->open() }} <div class="form-group"> - {{ Form::label('Select the stock you want to search') }} - {{ Form::select('blastdb', ['oligos' => 'oligos', 'plasmids' => 'plasmids', 'dnafeatures' => 'DNA features'], 'oligos') }} + {{ html()->label('Select the stock you want to search') }} + {{ html()->select('blastdb', ['oligos' => 'oligos', 'plasmids' => 'plasmids', 'dnafeatures' => 'DNA features'], 'oligos') }} <br> <br> - {{ Form::label('Select the blast program') }} - {{ Form::select('blastprog', ['blastn' => 'blastn', 'tblastn' => 'tblastn'], 'blastn') }} + {{ html()->label('Select the blast program') }} + {{ html()->select('blastprog', ['blastn' => 'blastn', 'tblastn' => 'tblastn'], 'blastn') }} <br> <br> - {{ Form::label('Select the blast task') }} - {{ Form::select('blasttask', ['blastn-short' => 'blastn-short', 'blastn' => 'blastn', 'tblastn' => 'tblastn'], 'blastn-short') }} + {{ html()->label('Select the blast task') }} + {{ html()->select('blasttask', ['blastn-short' => 'blastn-short', 'blastn' => 'blastn', 'tblastn' => 'tblastn'], 'blastn-short') }} <br> <br> - {{ Form::label('Paste below your query sequence') }} - {{ Form::textarea('queryseq', null, ['class' => 'form-control']) }} + {{ html()->label('Paste below your query sequence') }} + <br> <br> + {{ html()->textarea('queryseq', null, ['class' => 'form-control'])->rows(20)->cols(100) }} </div> - {{ Form::submit('BLAST Search', array('class' => 'btn btn-primary center-block')) }} + {{ html()->submit('BLAST Search', array('class' => 'btn btn-primary center-block')) }} -{{ Form::close() }} +{{ html()->form()->close() }} @stop