• 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

Artisan, creating tables in database

Add and update products to session cart in Laravel

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

Method IlluminateAuthRequestGuard::logout does not exist Laravel Passport

How to change 'users' auth table and use another instead Laravel

How do I upload a laravel project on cPanel shared hosting?

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

How to properly start Laravel 8 with Bootstrap & authentication

Sliders in Laravel

Using spatie/media-library, how to rename a collection of uploaded files?

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

image source not readable

Laravel relationship belongsToMany with composite primary keys

Laravel php artisan serve to mimic HTTPS

Failing validation doesn't stop code execution in livewire component

About Contact Privacy policy Terms and conditions