Category : xampp

$faker -> userName,//生成用户名 ‘password’ => bcrypt(‘123456’), //使用框架内值得bcrypt方法加密密码 ‘gender’ => rand(1,3), //随机性别 ‘mobile’ => $faker -> phoneNumber, //生成手机号 ’email’ => $faker -> email, //邮箱 ‘role_at’ => rand(1,6), //角色id ‘created_at’ => date(‘Y-m-d H:i:s’,time()), //创建时间 ‘status’ => rand(1,2) //账号的状态 ]; } //写入到数据表 DB::table(‘manager’) -> insert($data); } } Sourc..

Read more

I’m learning Laravel PHP. So I followed a tutorial on YouTube about creating a virtual host for XAMPP Apache server and I tried to modify httpd-vhosts.conf file in XAMPP/apache/conf/extra. My project directory is "D:ApplicationsXAMPPhtdocswwwEpsilonProgram" so how do I set the DocumentRoot in httpd-vhosts.conf? If I set as DocumentRoot "D:ApplicationsXAMPPhtdocswwwEpsilonProgram" and then turn on XAMPP Apache ..

Read more

When I am uploading an image to the form and returning it from the controller, the image name and extention are changing.I am a beggar, so if I make a mistake while asking a question, I would like to apologize. This is my form: <form action="{{ route(‘admin.slider.store’) }}" method="POST" enctype="multipart/form-data"> @csrf <div class="row"> <div class="col-md-12"> ..

Read more

I want to load my Laravel 5.8 project with Virtual Host on XAMPP. So here is what I did: I opened up C:WindowsSystem32driversetchosts and put this: # 127.0.0.1 localhost # ::1 localhost 127.0.0.1 local.nanoclub.ir Then at C:xamppapacheconfextrahttpd-vhosts.conf, I added this: <VirtualHost local.nanoclub.ir:80> DocumentRoot "C:/xampp/htdocs/badges/public" ServerName local.nanoclub.ir ServerAlias *.local.nanoclub.ir SetEnv APPLICATION_ENV "development" <Directory "C:/xampp/htdocs/badges/public"> DirectoryIndex index.php ..

Read more

I want to create a virtual host for my Laravel project with XAMPP, so I have followed these steps: Step 1) C:WINDOWSsystem32driversetc Opened the "hosts" file (as Administrator): 127.0.0.1 localhost 127.0.0.1 test.com Step 2) xamppapacheconfextrahttpd-vhosts.conf <VirtualHost *:80> DocumentRoot "C:/Users/User 1/Desktop/POUYA/freedeliveries" <= PROJECT DIRECTORY ServerName www.test.com </VirtualHost> Step 3) C:xamppapacheconfhttpd.conf. Scrolled down to the Supplemental configuration ..

Read more

Hello Sorry noob question here, I recently take over an existing laravel project which is already live and I’m trying to set it up locally however I got an error from the console css and js not found. layouts template looks something like below <link rel="stylesheet" href="/public/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="/public/font-awesome/css/font-awesome-animation.min.css"> <link rel="stylesheet" href="/public/css/datepicker.min.css"> <link rel="stylesheet" ..

Read more

I’ve edited my php.ini file to have extension=imap and now when I run any php command from the terminal CLI I get PHP Warning: PHP Startup: Unable to load dynamic library ‘imap’ (tried: /usr/local/lib/php/pecl/20190902/imap (dlopen(/usr/local/lib/php/pecl/20190902/imap, 9): image not found), /usr/local/lib/php/pecl/20190902/imap.so (dlopen(/usr/local/lib/php/pecl/20190902/imap.so, 9): image not found)) in Unknown on line 0 I have these in my ..

Read more

enter image description hereSystem ERROR: The system cannot find the file specified. This most likely is due to a custom installer plugin not handling the returned Promise from the downloader See https://github.com/composer/installers/commit/5006d0c28730ade233a8f42ec3 1ac68fb1c5c9bb for an example fix Install of fruitcake/laravel-cors failed Failed to extract guzzlehttp/guzzle: (2) "C:Program Files-Zipz.EXE" x -bb0 -y "C:xampphtdocslaravelproject/vendor/composer/tmp-46d21c6c404436b2 37eae4a7f30e344e" -o"C:xampphtdocslaravelproject/vendor/composer/a9f8a8d8" ERROR: ..

Read more

Good morning everybody. I got my project on localhost today in my Xampp, I can see the project and work on it, but the problem is , if i create a new Route, "/test", and i try to acces there, i get: Forbidden You don’t have permission to access this resource. Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.3.28 ..

Read more

I have a table product_sales which contains foreign keys of other tables i.e customer_id(of customers table) and measurement_id(of measurements table). Now I want to get Names of customers and measurements instead of IDs. product_sales table: id, customers_id, measurement_id customers table: id, customer_name measurements table: id, measurement_name I tried this SELECT product_sales.sale_id , customers.name, measurement_id product_sales.created_at, ..

Read more

👋 Hello. While downloading various laravel projects from github and testing them, I met an awkard situation. I installed xampp with php version 7 and the project requires php version 8 or above. So I updated php version using composer. After that, I downloaded another one and it requires 7.x version. I did not how ..

Read more

[2021-06-23 11:11:57] local.ERROR: array_keys() expects parameter 1 to be array, int given {"exception":"[object] (ErrorException(code: 0): array_keys() expects parameter 1 to be array, int given at C:xampphtdocsprojectvendorfideloperproxysrcTrustProxies.php:162) [stacktrace] #0 [internal function]: IlluminateFoundationBootstrapHandleExceptions->handleError(2, ‘array_keys() ex…’, ‘C:xampphtdocs…’, 162, Array) #1 C:xampphtdocsprojectvendorfideloperproxysrcTrustProxies.php(162): array_keys(30) #2 C:xampphtdocsprojectvendorfideloperproxysrcTrustProxies.php(98): FideloperProxyTrustProxies->getTrustedHeaderSet() #3 C:xampphtdocsprojectvendorfideloperproxysrcTrustProxies.php(70): FideloperProxyTrustProxies->setTrustedProxyIpAddressesToSpecificIps(Object(IlluminateHttpRequest), Array) #4 C:xampphtdocsprojectvendorfideloperproxysrcTrustProxies.php(54): FideloperProxyTrustProxies->setTrustedProxyIpAddresses(Object(IlluminateHttpRequest)) #5 C:xampphtdocsprojectvendorlaravelframeworksrcIlluminatePipelinePipeline.php(149): FideloperProxyTrustProxies->handle(Object(IlluminateHttpRequest), Object(Closure)) #6 C:xampphtdocsprojectvendorlaravelframeworksrcIlluminateRoutingPipeline.php(53): ..

Read more

i am newbie with laravel and tryng to download 5.8 version in a server xamp. But, when i try the command in the terminal of Xamp: composer create-project –prefer-dist laravel/laravel blog "5.8.*" returns [InvalidArgumentException] Could not find package laravel/laravel with version 5.8.* in a version installable using your PHP verson 8.0.5 Someone have a idea ..

Read more