• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

strpos(): Argument #1 ($haystack) must be of type string, array given

laravellaravel-8strposphp-8


PHP Snippet 1:

Route::get('posts/{post}', function ($slug) {
    $post = Post::find($slug);

    return view('post', [
        'post' => $post
    ]);

})
    ->where('post', '[A-z_-]+');

PHP Snippet 2:

php8.0-mbstring & php8.0-xml 

Related Snippets

Laravel relationship belongsToMany with composite primary keys

Laravel lang slug in url

Make survey at laravel 5.4 and MySQL

Laravel 5 session not persisting after user is logged in

How to Display Data in Yajra Datatables Laravel 7?

Login if user is active using Laravel Breeze

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

Laravel 8 factory state afterCreating

Laravel PackageManifest.php: Undefined index: name

Xdebug in Laravel is not working with VSCode

getting error while enter Command => php artisan route:list

How can I resolve "Your requirements could not be resolved to an installable set of packages" error?

how to sort by a custom appended relation to model

Docker & Laravel : configure: error: Package requirements (oniguruma) were not met

How to Make Laravel Eloquent "IN" Query?

About Contact Privacy policy Terms and conditions