PHP code example of rapidez / strapi
1. Go to this page and download the library: Download rapidez/strapi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rapidez / strapi example snippets
Route::get('blog', function ($location) {
return view('strapi.blog', ['data' => strapi('blogs')])
});
Route::get('blog/{slug}', function ($slug) {
return view('strapi.blog-item', ['data' => strapi('blogs?slug='.$slug)[0]])
});
@dynamiczone($data->content, ['foo' => 'bar', 'article' => $data])