Category : browser-cache

I’m setting the background image for a page with css in blade template background: url(‘img/background.png’); and in .htaccess file I added this: <File "background.png"> Header set Cache-Control "max-age=300, private" </File> I’m expecting that the server would set the cache control header for the file background.png but it does not. How can I set the Cache-Control ..

Read more

I’m developing a site in laravel. I have a view for editing and creating posts that brings the data stored from the database. For example: <input class="form-control" id="title" name ="title" type="text" value="@if($article != null){{$article->title}}@endif"> The problem is that when the user makes modifications, try to save the data and has validation errors, he loses all ..

Read more

Facing error traying to run php artisan serve after clear and config cache on a laravel project rand() expects parameter 2 to be int, string given (View: C:UsersuserDesktoptraipler-fetraipler-feresourcesviewstraiplerregionjscontainer.blade.php) jscontainer.blade.php $cookie_uid =(Cookie::get(‘tr_uid’)?Cookie::get(‘tr_uid’):”); if( $user = Auth::user()){ $cookie_uid = $user->id; } (‘set’, ‘userId’, ‘USER_ID’); // Set the user ID using signed-in user_id. if(empty($cookie_uid)){ //CREO UN COOKIED ID ..

Read more