Skip to content

Tag: php

Laravel 5 dynamically run migrations

so I have created my own blog package in a structure of Packages/Sitemanager/Blog I have a service provider that looks like the following: Now, what i would like to do is run the migrations dynamically if they have never been run before or within an installation process i suppose. I’ve seen in older doc…

Laravel 5 On POST Status 302 Found

I’m trying to create new post useing laravel , ajax and s3 , But every time i try submit the form i get Status Code:302 Found , I Hope really some help me Firebug Here in firebug result image META …

How to show calendar month’s previous days?

I’m trying to make a calendar that shows this month, and then fills in the remaining days on the end rows with the dates from the next and previous months. I managed to make it show next months dates and the thing is the issue is that I need it to show previous months dates as well. If someone manages

PHP regex – replace all text between a tag

I have a link being outputted on my site, what i want to do is replace the visible text that the user sees, but the link will always remain the same. There will be many different dynamic urls with the text being changed, so all the example regex that i have found so far only use exact tags like ‘/.*/&#8…

laravel 5.2 cant pass variable to view

I have a very simple controller and view. But for some reason I am unable to pass a variable to my view. Note that echo $project->title inside the router works. Controller: } View: But for some reason I keep getting this error: ErrorException in b605b028d5285b79f4e0043cf14415de5dddcae6.php line 10: Undefin…