spyrosjeva

Experience

4,670

0 Best Reply Awards

  • Member Since 1 Year Ago
  • 38 Lessons Completed
  • 0 Favorites

2nd April, 2018

spyrosjeva started a new conversation Confusion With Routes • 2 months ago

Lets say you having an e-shop and urls goes like this

route::resource('{category}/{product}','Controller')

But at the same time you also having some info pages whe the urls are like this

route::resource('{page},'PageController')

As you can guess in the above routes the one who is first is overriding the second.

How would you do it? What's the best practise here? and how can you go when you want to add more parameters on the game like

route::resource('{para}/something/{para},'Controller')

Thank you!

21st February, 2018

spyrosjeva started a new conversation Scss Source Map Not Indexed By Chrome • 4 months ago

Im trying to edit my scss files live on chrome using the source maps generated by the yarn run production, the problem is that the files are not being recornized by chrome.

Im using the latest Chrome Canary and the support for sass is enabled by default

The source maps ar located in the same directory as the css files

The code the my test source map is this

{"version":3,"file":"\admin\css\login.min.css","sources":[],"mappings":";;;;;","sourceRoot":""}

13th February, 2018

spyrosjeva started a new conversation Fetching Data From Other Classes? • 4 months ago

I have faiily good understanding of OOP in php but what confuses me is this...

i saw some examples on github where they use interfaces in some way to... lets say populate a sidebar with links when a new package is installed.

How can you get data from other classes like this without using the database?

20th January, 2018

spyrosjeva left a reply on Git Workflow Question • 5 months ago

@Snapey thanks mate appreciated

19th January, 2018

spyrosjeva left a reply on Git Workflow Question • 5 months ago

@D9705996 @shez1983 OK it seems promising but something is not very clear to me. The say that the storage of repositories is max 10gb (I assume on there paid plans) and they offer unlimited repositories. Does that mean I can add as many websites as I want under 10gb or there is an overall storage limit?

spyrosjeva left a reply on Git Workflow Question • 5 months ago

Thanks guys I will look into it

spyrosjeva started a new conversation Git Workflow Question • 5 months ago

I have been learning git for the past 2 weeks and i want to propose to my boss to move to it.

My company has around 200 sites which we will move to version control and more specific to bitbucker because of its features (pipelines) . How can we do it? Shall we move every website on a repository? I saw bitbucket has a limited amount of space, which is the best option here?

23rd October, 2017

spyrosjeva started a new conversation Problem With PurifyCss • 7 months ago

Hello there guys, im trying make purifycss work without success for some reason.Here the code

mix.styles('website/assets/css/test.css', 'website/assets/output-test.css').options({

    purifyCss: {
        purifyOptions: {
            info: true,
            rejected: true,
            minify: true
        },
        paths: ['resources/views/frontend/index.blade.php'],
        verbose:true
    }

}); 

The test.css file has only one class inside which is not even used on index.

Here is the outpoot when i run npm run dev

> @ dev C:\wamp64\www\blablatoys
> npm run development


> @ development C:\wamp64\www\blablatoys
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

 92% recordingAssets to purify:                                                                                                                                                                                                                         95% emitting
                  
 DONE  Compiled successfully in 88ms                                                                                                                                                                                                                         13:27:29

      Asset      Size  Chunks             Chunk Names
                  mix.js   2.59 kB       0  [emitted]  mix
\website\assets\test.css  29 bytes          [emitted]  

5th October, 2017

spyrosjeva started a new conversation Laravel Cache Edit View After Update • 8 months ago

Hello there guys im facing a weird problem

When we moved or app on production we started doing tests, and we noticed that when we update a product (update with method field put) the app caches the edit view and you need an control f4 to see the right values when you reedit, im have tryed cache:clear removed manually the cache and session data and also this is not happening on localhost (wamp) any ideas?

16th September, 2017

spyrosjeva left a reply on Update Laravel Using Bitbucket Pipelines • 9 months ago

@martinbean yeap you where right is not possible after all so i need to do it manually thanks for the info, also is there a way or a server setup where i can update multiple apps at the same time, lets say i have updated or extended my base with more features (tested and ready) and i want to push this to all my multiple productions, is there a way?

14th September, 2017

spyrosjeva left a reply on Update Laravel Using Bitbucket Pipelines • 9 months ago

@martinbean Yeap im aware that you can't do that for major updates like 5.4 to 5.5 but how about the minor upgrades (5.5.1,5.5.2 and on) never had any problems with them and they are also include bug fixes.

@bashy Have a look

(One Drive Link) https://1drv.ms/i/s!AqyM1_NYKkPlhQNvbB_E8SWepHmn

spyrosjeva started a new conversation Update Laravel Using Bitbucket Pipelines • 9 months ago

I was testing the functionality of bibuckets pipelines and im looking to do the following, install the default enviroment and on every commit/push have laravel update itself with the composer update command and then if no error come from the test's upload to the production server with git ftp.

The problem im facing is with composer update, even if there is no new downloads from it afther its done git ftp gives me a message of "dirty repocitory" meaning that there are uncommited changes.

Is there a way to configure pipelines to commit and push those changes from the update?

Here is my .yml file

image: php:7.1.1
pipelines:
  default:
    - step:
        script:
          - apt-get update && apt-get install -y unzip
          - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
          - composer -V
          - composer install
          - composer update
          - apt-get -qq install git-ftp
          - git ftp init --user $ftp_username --passwd $ftp_password ftp://****/****/

28th August, 2017

spyrosjeva left a reply on What Is The Actual Role Of Forge • 9 months ago

@lars6 how is your experience with digital ocean, i see a lot of negative reviews on there facebook page.

spyrosjeva started a new conversation What Is The Actual Role Of Forge • 9 months ago

Hello there guys i was looking on laravel forge and i must say im quite exited with the level of simplicity. But all this got me quite sceptical about the actual role of forge.

Can it be used as a production sever or just development and test or demo displaying, i did some research on the security it provides and based on the little information i found it seems that the default layer is pretty basic? Dont know since im not a server administration myself so if there is any info on this i would greatly appreciate if you include it on your answer.

3rd June, 2017

spyrosjeva started a new conversation Remove Unused Css On One Page. • 1 year ago

Hello guys im trying to get the csspurify plugin to work with laravel mix and im trying to remove the unused css on one file only. So far is not working.

const { mix } = require('laravel-mix');

mix.webpackConfig({
    resolve: {
        plugins: [

            new PurifyCSSPlugin({
                // Give paths to parse for rules. These should be absolute!
                paths: glob.sync(path.join(__dirname, 'resources/views/index.blade.php')),
            })
        ]
    }
});


mix.styles([
    'public/assets/css/style.css',
    'public/assets/vendor/font-awesome/css/font-awesome.min.css',
    'public/assets/vendor/owlcarousel/assets/owl.carousel.min.css',
    'public/assets/vendor/owlcarousel/assets/owl.theme.default.min.css',
    'public/assets/css/vendor/settings.css',
    'public/assets/css/vendor/prettyPhoto.css',
], 'public/css/all2.css');

spyrosjeva left a reply on Implement Purify Css • 1 year ago

Could you please share with the community how to did it?

31st May, 2017

spyrosjeva left a reply on Build A Sidebar With Custom Class • 1 year ago

Nope still trying to find what im doing wrong, btw for the module generation i use this package https://github.com/nWidart/laravel-modules.

When i try to do dd() it returns an empty array but if i try to get data from the root app and not from the packages it returns all the data just fine.

28th May, 2017

spyrosjeva left a reply on Build A Sidebar With Custom Class • 1 year ago

I gave it a try and changed the namespaces the folder and the file but still nothing...

27th May, 2017

spyrosjeva started a new conversation Build A Sidebar With Custom Class • 1 year ago

Im experimenting on a modular app and im looking to make a custom sidebar where it will display options from every package i will add on a specific folder.

Here is my custom class


```class Sidebar
```{
```    public $data = [];

```    public function __construct() {}

```   public function items($item)
```   {
```      $this->data[] = $item;
```    }

```    public function fetch(){

```        return $this->data;

```    }



```}

And the controller which will add the data

```namespace Modules\Pages\Http\Controllers\admin;

```use Illuminate\Http\Request;
```use Illuminate\Http\Response;
```use Illuminate\Routing\Controller;
```use App\Classes\Sidebar;

```class Admin\SidebarController extends Controller
```{

```    public function __construct(){

```    $items = array(
```        'name'=>'test',
```        'url'=> route('pages.index'),
```       'subitem' => array(
```           'name'=>'subtest',
```            'url'=> route('pages.index')
```        );
```    );

```    $sidebar = new sidebar;
```    $sidebar->items($items);

```    }


```}


To pass data on the view im using a viewcomposer which targets the sidebar.blade.php

```namespace App\Http\ViewComposers;

```use Illuminate\View\View;
```use App\Repositories\UserRepository;
```use App\Classes\Sidebar;

```class SidebarComposer
```{
 ```   public function compose(View $view)
 ```   {

```        $sidebar = new sidebar;
```        dd($sidebar->fetch());
```        $view->with('items', $items);
```    }
```}


3rd May, 2017

spyrosjeva left a reply on Problem With Edit Method (Resource Model Binding) • 1 year ago

Never mind the val $lang was overitten by another

spyrosjeva left a reply on Problem With Edit Method (Resource Model Binding) • 1 year ago

The languages is actually the name of the binded model, and the above format seems to be working with destroy which returns a single record.

To get the results for the list view im using get()

2nd May, 2017

spyrosjeva started a new conversation Problem With Edit Method (Resource Model Binding) • 1 year ago

Hello guys im using the new model binding on resource controllers and i was wondering why the edit method returns a collection instead of a single record.

routes.php

//languages
Route::resource('language', 'admin\settings\language\LanguageController');

Controller

    public function edit(languages $language)
    {
        
        return view('admin/settings/languages/edit')->with('lang',$language);
    }

list view

                            @foreach($lang as $row)
                            <tr>
                                <td><center>{{ $row->title }}</center></td>
                                <td><center>{{ $row->code }}</center></td>
                                <td>
                                    <div class="pull-left">
                                        <form action="{{ route('language.edit',$row->id) }}">
                                            {{ csrf_field() }} {{ method_field('PUT') }}
                                            <button type="submit" class="btn btn-success">ΕΠΕΞΕΡΓΑΣΙΑ</button>
                                        </form>
                                    </div>
                                    <div class="pull-right">
                                        <button type="button" class="btn btn-danger" data-toggle="modal" href="#lang_{{ $row->id }}">ΔΙΑΓΡΑΦΗ</button>
                                    </div>
                                </td>
                                <td><center>{{ $row->sort_order }}</center></td>

                                @if($row->status == 1)
                                    <td><center>Ενεργοποιημένο</center></td>
                                @else
                                    <td><center>Απεργοποιημένο</center></td>
                                @endif

                                @if($row->current == 1)
                                    <td><center>Ναι</center></td>
                                @else
                                    <td><center></center></td>
                                @endif

                            </tr>
                            @endforeach 

6th April, 2017

spyrosjeva started a new conversation Push Additional Data On Global Variable. • 1 year ago

Hello there guys im looking for a way to push more data on a shared global variable, without having it overwritten. The main goal is to add items on a sidebar like this

@foreach($item_list as $item)

  • {{ $item->name }} </[email protected]

  • 17th February, 2017

    spyrosjeva started a new conversation Trying To Understand Mix And Webpack As A Begginer • 1 year ago

    Hello there guys i was looking for ways to increase performance on my laravel app and i heard some good things on webpack and since laravel have made a turn on it with its new version i would like to ask about how it is distrubuting javascript or even sass.

    As i saw in some posts people say that webpack can bring javascript forward on demand like an app.js 32K on one page and on other 23k. Is this correct? If it is how can i do that with mix?

    11th December, 2016

    spyrosjeva left a reply on Module Options On Interface • 1 year ago

    Thanks for the answers guys that's a lot of help :)

    9th December, 2016

    spyrosjeva started a new conversation Module Options On Interface • 1 year ago

    Hello three guys I'm a junior web developer and I have started experimenting with laravel for my upcoming projects

    I have discovered that laravel can use modules and I looking for information on how can I add let's say more options on my admin panel like custom sections for my modules (settings, menus, functions) like joomla is doing via xml approach. All that to be added on module installation/registration.

    Edit Your Profile
    Update

    Want to change your profile photo? We pull from gravatar.com.