Does +FollowSymLinks work with Windows shortcuts? It seems it is completely ignored by Apache under Windows 10. The importance of this is that, some web frameworks, like Laravel, use this directive to access storage folder (or any other folder outside the public directory) throughout symbolic links. Then, these features are simply ignored in Apache under ..
Category : laravel
I understand there are very similar questions, but what I’m asking for is Tailwind Modal. The ones I’ve seen are for bootstrap and it does not work. I’m just looking for a generic/simple way to pass data without using plugins. Please help, thank you. @foreach($rentals as $rental) <a href="{{ route(‘rentals.destroy’, $rental->id) }}">–}} aria-label="Delete"> Delete </a> ..
I am trying to display my logs on my website to verified users in Laravel based on my role based access control. $file = fopen("/var/log/auth.log", "r") or die(); $content = fread($file, filesize("/var/log/auth.log")); fclose($file); This hits me with an error: fopen(/var/log/auth.log): failed to open stream: Permission denied I can see that Laravel does not have the ..
I have this working code with AS count self declared field using eloquent $delimeter = ‘ ‘; $keywords = explode($delimeter, $keyword_search); $base_query = DB::table(‘yeast_entire_search’)->selectRaw(‘ id, part_number, part_name, Round ((Char_length(Concat( LOWER(part_number), LOWER(part_name) )) – Char_length(REPLACE ( Concat( LOWER(part_number), LOWER(part_name) ), LOWER("’.$keyword_search.’"), ""))) / Char_length(LOWER("’.$keyword_search.’"))) AS count ‘); foreach($keywords as $keyword){ $base_query->where(function($query) use ($keyword){ $query->where(‘part_number’, ‘like’, ‘%’ ..
I would like to save the following object to a field on a mongodb collection via eloquent "project_settings" : { "resource" : true, "zone" : true, "contractor" : true, "responsible_person" : false } this is my php code: return ProjectModel::where($project_id)->first()->update($project_data); dont worry about the model it works fine i need to make a query that ..
I’m trying to calculate how many times a champion was selected coming from my database , but the data i’m getting is not correct , for example leona was picked 6 times and had 3 victories in general for every team , but im using a select so if i select TSM for example , ..
im facing an issue to retrive an array from my database and display it on my blade. So to understand my work, im actualy saving "Cart" informations on my "Orders Table" with Serialize the Products public function store(Request $request) { $order = new Order(); $order->user_id = request(‘user_id’); $order->wilaya = request(‘wilaya’); $order->province = request(‘province’); $order->address = ..
during the conception of my web site using laravel 7 I found some troubles when I wanted to customize my laravel customize my Laravel email verification message. first, I went to this file "C:xampphtdocsclinique_juridiquevendorlaravelframeworksrcIlluminateAuthNotificationsVerifyEmail.php",then i translate the sentences that are there . Here I met two issues, the first one some sentences are not in ..
I have a session lifetime of 120 minutes in my Laravel config. How can you implement that for authorized users the goods are stored longer (for example, a month), and for unauthorized users, as usual, 120 minutes? I made a cart through the Session facade If you need me to share the shopping cart code, ..
This is the code I have inside my Action Class: public function fields() { return [ Date::make(‘checkin_date’), Date::make(‘checkout_date’), Textarea::make(‘remark’), Text::make(‘holder_name’), Text::make(‘holder_surname’), Text::make(‘clientReference’), ]; } What I’m looking for is to show the actual database value on each field. So a user would either choose to edit or keep values as they are. Sourc..
I have uploaded my Laravel project on ubuntu server via putty terminal. Composer installed on server machine but when i run any artisan command it gives an error. $ php artisan serve ErrorException require(/var/www/html/healthapi.fynity.in/routes/api/v1/api.php): failed to open stream: No such file or directory The api.php is already there but i don’t know why this error ..
So I installed Laravel Debugbar today in an attempt to make my local dev a better experience, and for the most part, it has. An issue has arisen though when I try to download an Excel generated from PhpOfficePhpSpreadsheet (https://phpspreadsheet.readthedocs.io/en/latest/) Here’s a snippet of the code in question: $excelFile = new Spreadsheet(); // Load stuff ..
I have been attempting to get a form to update the database that already exists. I have effectively copy and pasted the fully working code from my create blade to my edit blade and it has a weird issue where instead of editing the database it seems to run the wrong function. When I click ..
Just deployed a new app to production and seeing a strange bug: One of the pages has a PHP error and throws an exception. Strangely, it’s a Symfony branded exception page (screenshot), different from the ones I’ve seen in Laravel before. Env file is already set to production environment and has APP_DEBUG=false. Does anyone know ..
So I have this blog website which each blog post information is get from the admin user. In admin create post view I have a text area for the title which I can easily set its data to database by giving it a name, but then I have these buttons in my view(one for inserting ..
Recently I’ve just started testing October CMS. As for starting point I’ve installed this theme Really, I don’t know does a issue relates to this theme, but the problem is with a filterable blog categories. I’ve created two blog categories: "Photos" and "Videos", I’ve created several posts and assigned them accordingly. Featured images of two ..
I create new command in laravel: public function handle() { $serversList = [ ‘cubegame.pl’, ‘feerko.pl’, ‘skyup.pl’, ‘mcosada.pl’, ‘dragon-craft.pl’, ‘gc2.pl’, ‘mc.craftplay.pl’, ‘iskyblock.pl:25600’, ‘mc.craftmc.pl’, ‘mc.realcraft.pl’, ‘katomc.pl’, ‘mc.minestar.pl’, ]; foreach ($serversList as $server) { $req = Http::get("https://api.mcsrvstat.us/2/$server"); if ($req->ok()) { $status = $req->json(); // dump($status[‘motd’][‘html’][0]); $serv = Server::updateOrCreate( [ ‘name’ => $server, ‘ip’ => $status[‘ip’] ], [ ‘motd’ ..
Noob to Vue and Laravel here, I am building a web app with inertia and Vue on Laravel. I have a frontend and a dashboard. Dashboard has lot of css and js files which should not load on frontend. How can I load them ONLY on dashboard? Sourc..
I currently am using react hook powered component to record my screen, and subsequently upload it to Google Cloud Storage. However, when it finishes, the file created inside Google Cloud appears to be corrupt. This is the gist of the code within my React component, where useMediaRecorder is from here: https://github.com/wmik/use-media-recorder – let { error, ..
There i Have a warning In Laravel 5.5 in This Code: Route::prefix(‘dashboard’)->group(function () { Route::get(‘/’, function () { return ‘index’; }); Route::get(‘/menu’, function () { return ‘menu’; }); }); i have this warning: Required parameter ‘$routes’ missing Sourc..
I create new own command in laravel, which updates some rows in mysql (in this case minecraft servers): public function handle() { $serversList = [ ‘cubegame.pl’, ‘dermc.pl’, ‘feerko.pl’, ‘skyup.pl’, ‘mcosada.pl’, ‘dragon-craft.pl’, ‘gc2.pl’ ]; foreach ($serversList as $server) { $req = Http::get("https://api.mcsrvstat.us/2/$server"); if($req->ok()) { $status = $req->json(); echo( $status[‘motd’][‘html’][0] ); // $serv = Server::updateOrCreate( // [ ..
I’m building an API to support an external application. I have added several routes to it with no problem, but suddenly, when I add a new route (acars/delay), I get a 404 error when trying to hit http://myurl.dev/api/acars/delay with a POST request. Here is my api.php file: Route::post(‘acars/deactivate’, ‘[email protected]’); Route::post(‘acars/ofp’, ‘[email protected]’); Route::post(‘acars/create’, ‘[email protected]’); Route::post(‘acars/pirep’, ‘[email protected]’); ..
Hi guys I am using Auth method in Laravel to try to print ‘logged in successfully’ if the user has provided correct credentials and to print ‘sorry you have entered wrong credentials’ if the user has not entered the correct credentials. But the problem is that am always getting the false statement I.e. ‘sorry you ..
For instance let’s say the ”’ $model_name = ‘student_table’; ”’ ‘providers’ => [ ‘users’ => [ ‘$model_name’ => [ ‘driver’ => ‘eloquent’, ‘model’ => AppModels.$model_name.::class ] ] ] The problem is that laravel fires an unexpected ‘.’ expecting identified (T_STRING) And I need to insert the model name dynamically because there lot of database tables ..
I am trying to get the exact uploaded image size by using getimagesize() php helper on Laravel 7. But i get an error ErrorException: Undefined property: IlluminateHttpUploadedFile::$name on the line where the code is: if($request->file(‘image’) != null){ $upload = $request->file(‘image’); $sourceProperties = getimagesize($upload->name); Please help understand the issues since it only occurs on the Debian ..