What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-26 03:39:03
auth.php Class "\App\User" not found
Go to config/auth.php and change App\User:class to App\Models\User::class. 'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\Models\User::class, ], Also change the namespace of User.php model names... Add solution -
PHP 2021-09-23 12:45:04
interview php questions
# 27 basics questions for php Interview 1) What is PHP? PHP is a web language based on scripts that allow developers to dynamically create generated web pages. 2) What do the initials of PHP stand for? PHP means PHP: Hypertext Preprocessor. 3) Which pr... Add solution -
PHP 2021-09-19 02:58:03
message mkdir() invalid path filename drivers/session_files_driver.php
change your application->config->config.php and set $config['sess_driver'] = 'database'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_save_path'] = 'ci_sessions'; $config['sess_match_ip'] = FALSE; $co... Add solution -
PHP 2021-09-12 12:28:03
how to excluse csrf in a route laravel
// go to App\Http\Middleware\verifyCsrfToken.php and add the route into except array <?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier; class VerifyCsrfToken extends BaseVerifier { prote... Add solution -
PHP 2021-09-12 03:42:02
download image from mysql using php
//You can save this to test.php and call it with test.php?id=1 for example <?php //Database class with PDO (MySQL/MariaDB) require_once("database.php"); //If you need this, write to [email protected] i'll send you the db class //Connect to da... Add solution -
PHP 2021-09-10 10:12:02
php interview questions
# 27 basics questions for php Interview 1) What is PHP? PHP is a web language based on scripts that allow developers to dynamically create generated web pages. 2) What do the initials of PHP stand for? PHP means PHP: Hypertext Preprocessor. 3) Which pr... Add solution -
Other 2021-09-03 09:56:03
cURL error 77: error setting certificate verify locations stripe
In your php.ini file, you should also update your ;openssl.cafile with the same cacert.pem link you used in updating your ;curl.cainfo to (CHECK YOUR PATH TO PHP and cacert.pem file) openssl.cafile="C:\php-7.4.11\extras\ssl\cacert.pem" curl.... Add solution -
Shell/Bash 2021-08-28 14:58:02
apt install php
# Update packages lists sudo apt update # Install Apache2 (on Ubuntu, mostly it's already installed) sudo apt install apache2 # Install the latest version of PHP and Apache wrapper sudo apt install php libapache2-mod-php # Install some important PHP ex... Add solution -
Shell/Bash 2021-08-27 15:42:01
ubuntu install php
# Update packages lists sudo apt update # Install Apache2 (on Ubuntu, mostly it's already installed) sudo apt install apache2 # Install the latest version of PHP and Apache wrapper sudo apt install php libapache2-mod-php # Install some important PHP ex... Add solution